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.3.tar.gz (91.6 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.3-py3-none-any.whl (99.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for picasso_cosmo-1.1.3.tar.gz
Algorithm Hash digest
SHA256 f2c4099ca5ef0504497b088c18b3173136a39451df38d68c15bb221b82ba6097
MD5 779f7840724ec830789fb3987dc7e714
BLAKE2b-256 6d3efd3c398b5712dd112eb54b5a3e723f5f5f348c7fd7bf106adb91feff7c2b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for picasso_cosmo-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e62221a9634695c7fd389462e49e6ad4fb7f919ea4554bfbc90e6af955cb5ea6
MD5 3c2f753246ef1f2116f49c0cf4b6e581
BLAKE2b-256 a6eade7a08ca75009f8879e0ca998198b84df1035623abdf57e5ab620d10fdb1

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