Skip to main content

No project description provided

Project description

logo

Tests Documentation Status arXiv PyPI - Version

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 Poetry 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
poetry install --with=tests
poetry run pytest

Some of the test also include basic benchmarking of model predictions using pytest-benchmark:

poetry 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}
}

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

picasso_cosmo-1.1.2.tar.gz (85.0 kB view details)

Uploaded Source

Built Distribution

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

picasso_cosmo-1.1.2-py3-none-any.whl (91.3 kB view details)

Uploaded Python 3

File details

Details for the file picasso_cosmo-1.1.2.tar.gz.

File metadata

  • Download URL: picasso_cosmo-1.1.2.tar.gz
  • Upload date:
  • Size: 85.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/24.4.0

File hashes

Hashes for picasso_cosmo-1.1.2.tar.gz
Algorithm Hash digest
SHA256 b900db8a106e8c21e9601e7d064c373d8fb9690debd6ea900bbfd5ad683ba276
MD5 0d55562b019e116d139d75bca0287756
BLAKE2b-256 d6a0cd4b87b5ff30d3d39fb9db411a261f2f28c38d962bf4986e61d96c4414cc

See more details on using hashes here.

File details

Details for the file picasso_cosmo-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: picasso_cosmo-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 91.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/24.4.0

File hashes

Hashes for picasso_cosmo-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b07d3a9f1e3e1fe3dbccf6d35be6c9e69ede567a1553c83ecc2692437c66b7f5
MD5 d717ef3c07a21531bae313369a0be12f
BLAKE2b-256 0771b9d93f5a7629f64f292f525bbcd9a7043cd578ef3d4496b4d09e7ee18e16

See more details on using hashes here.

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