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.
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:
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flipcosmo-1.2.2.tar.gz.
File metadata
- Download URL: flipcosmo-1.2.2.tar.gz
- Upload date:
- Size: 392.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88543d051fca6de9468c3a143885a29ce0b65fccc377f1384731e987c134bb87
|
|
| MD5 |
5fd8b31c02a33af212742e671953cd99
|
|
| BLAKE2b-256 |
ed8f272e4a50553cdf4cca4028053f5361a36acf18343f55b16296997f5f463e
|
Provenance
The following attestation bundles were made for flipcosmo-1.2.2.tar.gz:
Publisher:
publish-to-pypi.yml on corentinravoux/flip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flipcosmo-1.2.2.tar.gz -
Subject digest:
88543d051fca6de9468c3a143885a29ce0b65fccc377f1384731e987c134bb87 - Sigstore transparency entry: 924341900
- Sigstore integration time:
-
Permalink:
corentinravoux/flip@369c5c5ed07a76424f6aeb68060b3a80678e23ed -
Branch / Tag:
refs/tags/v1.2.2 - Owner: https://github.com/corentinravoux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@369c5c5ed07a76424f6aeb68060b3a80678e23ed -
Trigger Event:
push
-
Statement type:
File details
Details for the file flipcosmo-1.2.2-py3-none-any.whl.
File metadata
- Download URL: flipcosmo-1.2.2-py3-none-any.whl
- Upload date:
- Size: 427.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9353fbe25f4b6451d880db7c23728df58236ff861df268a9c64930b50c1769a3
|
|
| MD5 |
b12d74b9d6c563726157e6011c4e6f46
|
|
| BLAKE2b-256 |
9d465367aa6604721d0de7b1fd97bd7d1c7027d359c6b5ab4845597fba1054af
|
Provenance
The following attestation bundles were made for flipcosmo-1.2.2-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on corentinravoux/flip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flipcosmo-1.2.2-py3-none-any.whl -
Subject digest:
9353fbe25f4b6451d880db7c23728df58236ff861df268a9c64930b50c1769a3 - Sigstore transparency entry: 924341913
- Sigstore integration time:
-
Permalink:
corentinravoux/flip@369c5c5ed07a76424f6aeb68060b3a80678e23ed -
Branch / Tag:
refs/tags/v1.2.2 - Owner: https://github.com/corentinravoux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@369c5c5ed07a76424f6aeb68060b3a80678e23ed -
Trigger Event:
push
-
Statement type: