Skip to main content

flip: Field Level Inference Package

DOI

flip is a Python package that uses the maximum likelihood method to fit the growth rate based on the velocity and density fields. The first part of the software is the computation of a covariance matrix from a model power spectrum and the considered coordinates. This part is generalized to work for any linear power spectrum models, both for velocities, densities, and cross-terms, and it is optimized with Hankel transform for any model. In the second part, the covariance is used to create a likelihood by multiplying it by velocities or densities. Finally, this package includes some integrated fitters such as Minuit and MCMC (with emcee) to fit the growth rate of structures.

Documentation Status

Quick install

git clone https://github.com/corentinravoux/flip.git
cd flip
pip install .

Required packages

Mandatory: numpy, scipy, matplotlib, iminuit, emcee, sympy

Optional: classy, pyccl, pmesh, GPy, tensorflow, cosmoprimo

Examples

For an example with velocity fit check out: Open In Colab

For density only: Open In Colab

For a joint fit: Open In Colab

Need help?

Documentation available on ReadTheDoc

How to cite

The full description of the core concepts of this package is given here. This package was started on the previous work of @bastiencarreres, detail in this article. Please cite both paper when using the package.

Metadata

Release files for flipcosmo 2.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flipcosmo 2.0.10
File Size Uploaded Provenance Actions
flipcosmo-2.0.10.tar.gz 431.6 kB With provenance Details for flipcosmo-2.0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flipcosmo 2.0.10
File Interpreter ABI Platform Actions
flipcosmo-2.0.10-py3-none-any.whl Python 3 none any Details for flipcosmo-2.0.10-py3-none-any.whl

Total release size: 905.8 kB

Release files / flipcosmo-2.0.10.tar.gz

Download URL flipcosmo-2.0.10.tar.gz
Size 431.6 kB
Tags Source
SHA-256 checksum
How to use checksums
60eb56e2cd44b8f620c7698f54af1c45d09ff3147294d4c17051de0e9ea91c9c
BLAKE2b-256 checksum
How to use checksums
a106d5686bfcc122ba2eae7a0a81d365eaab5f17e2ae594c45e6fe416ff5ae96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release files / flipcosmo-2.0.10-py3-none-any.whl

Download URL flipcosmo-2.0.10-py3-none-any.whl
Size 474.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfd73cf639e73afd7ac7465b772cb636712059a48945bf6ccdc698e7133f5f48
BLAKE2b-256 checksum
How to use checksums
30a9365795903f29980b3530516dc1d26b2821e743e2cae4f06347ba04452cca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Security for flipcosmo 2.0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for flipcosmo-2.0.10.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page