picasso
Painting intracluster gas on gravity-only simulations
picasso is a model that allows making predictions for the thermodynamic properties of the gas in massive dark matter halos from gravity-only cosmological simulations.
It combines an analytical model of gas properties as a function of gravitational potential with a neural network predicting the parameters of said model.
It is released here as a Python package, combining an implementation of the gas model based on JAX and Flax, and models that have been pre-trained to reproduce gas properties from hydrodynamic simulations.
Documentation
See also Kéruzoré et al. (2024).
Installation
picasso can be install via pip:
pip install picasso-cosmo[jax]
Alternatively, if you already have JAX and flax installed, you may use
pip install picasso-cosmo
The latter option will not install or upgrade any package relying on JAX, which can be useful to avoid messing up an existing install. To install JAX on your system, see JAX's installation page.
Testing and benchmarking
picasso uses uv to manage dependencies.
To test your installation of picasso, you can install the tests dependency group and run pytest:
git clone git@github.com:fkeruzore/picasso.git
cd picasso
uv python install
uv sync --all-groups --all-extras
uv run pytest
Some of the test also include basic benchmarking of model predictions using pytest-benchmark:
uv run pytest --benchmark-enable
Citation
If you use picasso for your research, please cite the picasso original paper:
@ARTICLE{2024OJAp....7E.116K,
author = {{K{\'e}ruzor{\'e}}, Florian and {Bleem}, L.~E. and {Frontiere}, N. and {Krishnan}, N. and {Buehlmann}, M. and {Emberson}, J.~D. and {Habib}, S. and {Larsen}, P.},
title = "{The picasso gas model: Painting intracluster gas on gravity-only simulations}",
journal = {The Open Journal of Astrophysics},
keywords = {Astrophysics - Cosmology and Nongalactic Astrophysics},
year = 2024,
month = dec,
volume = {7},
eid = {116},
pages = {116},
doi = {10.33232/001c.127486},
archivePrefix = {arXiv},
eprint = {2408.17445},
primaryClass = {astro-ph.CO},
adsurl = {https://ui.adsabs.harvard.edu/abs/2024OJAp....7E.116K},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
Metadata
Release files for picasso-cosmo 1.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| picasso_cosmo-1.1.4.tar.gz | 5.0 MB | Without provenance | Details for picasso_cosmo-1.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| picasso_cosmo-1.1.4-py3-none-any.whl | Python 3 | none | any | Details for picasso_cosmo-1.1.4-py3-none-any.whl |
Total release size: 5.1 MB
Release files / picasso_cosmo-1.1.4.tar.gz
| Download URL | picasso_cosmo-1.1.4.tar.gz |
|---|---|
| Size | 5.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c03818fc36f46037861a6b3d8c0438f7becc9501bc6dd36ef5279a27466b0768
|
|
BLAKE2b-256 checksum How to use checksums |
e6358badef16a9de281b539e2a761781246912049f26c3f959a257f144e6fa6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.4
|
Release files / picasso_cosmo-1.1.4-py3-none-any.whl
| Download URL | picasso_cosmo-1.1.4-py3-none-any.whl |
|---|---|
| Size | 99.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2bcc51467e083ff4d798da12988575ddcbbca94dc24de7998dafe406ee20d0f6
|
|
BLAKE2b-256 checksum How to use checksums |
ff8ea31d5342b31f6ec0482adcabfb867549fd071a4750ab716bfc745b5ec91f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.4
|
Security for picasso-cosmo 1.1.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.