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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flipcosmo-2.0.10.tar.gz (431.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flipcosmo-2.0.10-py3-none-any.whl (474.2 kB view details)

Uploaded Python 3

File details

Details for the file flipcosmo-2.0.10.tar.gz.

File metadata

  • Download URL: flipcosmo-2.0.10.tar.gz
  • Upload date:
  • Size: 431.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for flipcosmo-2.0.10.tar.gz
Algorithm Hash digest
SHA256 60eb56e2cd44b8f620c7698f54af1c45d09ff3147294d4c17051de0e9ea91c9c
MD5 006f68930585201b8753742547c1d8f7
BLAKE2b-256 a106d5686bfcc122ba2eae7a0a81d365eaab5f17e2ae594c45e6fe416ff5ae96

See more details on using hashes here.

Provenance

The following attestation bundles were made for flipcosmo-2.0.10.tar.gz:

Publisher: publish-to-pypi.yml on corentinravoux/flip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flipcosmo-2.0.10-py3-none-any.whl.

File metadata

  • Download URL: flipcosmo-2.0.10-py3-none-any.whl
  • Upload date:
  • Size: 474.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for flipcosmo-2.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd73cf639e73afd7ac7465b772cb636712059a48945bf6ccdc698e7133f5f48
MD5 61fc5e156923014b40e217b69e502884
BLAKE2b-256 30a9365795903f29980b3530516dc1d26b2821e743e2cae4f06347ba04452cca

See more details on using hashes here.

Provenance

The following attestation bundles were made for flipcosmo-2.0.10-py3-none-any.whl:

Publisher: publish-to-pypi.yml on corentinravoux/flip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.0.10 This release

2 files

2.0.9

2 files

2.0.6

2 files

2.0.5

2 files

2.0.0

2 files

1.2.2

2 files

1.2.1

2 files

1.0.0

2 files

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