Skip to main content

Field Level Inference Package

Project description

flip: Field Level Inference Package

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 .

For now, the package requires you to install manually cosmoprimo: pip install git+https://github.com/cosmodesi/cosmoprimo

Required packages

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

Optional: classy, pyccl, pypower, GPy, tensorflow

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.

Project details


Download files

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

Source Distribution

flipcosmo-1.2.1.tar.gz (392.7 kB view details)

Uploaded Source

Built Distribution

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

flipcosmo-1.2.1-py3-none-any.whl (427.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flipcosmo-1.2.1.tar.gz
  • Upload date:
  • Size: 392.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for flipcosmo-1.2.1.tar.gz
Algorithm Hash digest
SHA256 4f954b9fe17dffbc88e5dbec20150043138fcf07226fea86e6d3752d5ec7e7e7
MD5 1383998cf8be9694cddcab36c763018c
BLAKE2b-256 b0eaa34d87994150e799ad220d7117e74cce3b421f86d110f632ddd2e4129119

See more details on using hashes here.

Provenance

The following attestation bundles were made for flipcosmo-1.2.1.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-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: flipcosmo-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 427.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for flipcosmo-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a39e72353d44063557da3c97535bcccc0aa3d51e80f2ad746e98d25cd811be88
MD5 d8486a265242351e9c128b95630e8dc1
BLAKE2b-256 fbfb5e91e65a01339215ef8683dd081a7b73f6fee629606364bebdb47befc763

See more details on using hashes here.

Provenance

The following attestation bundles were made for flipcosmo-1.2.1-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page