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.1.tar.gz (85.2 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.1-py3-none-any.whl (92.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for picasso_cosmo-1.1.1.tar.gz
Algorithm Hash digest
SHA256 73068b092e99f09466de0776e107912af0c07b1d430d109b5bceb45fcf442fb2
MD5 5eab0d76c820ed47b6220483057ab972
BLAKE2b-256 fdb0a72fde53f33411d5e0226020747bec8575cbf56e71009ca307e12cf3058e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for picasso_cosmo-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b3109a081093548b0af1e0cc617edabd6d290ff51f115df9c40440748728166
MD5 dcee90138be40da7e6ae8305c1a43da9
BLAKE2b-256 c979aa4c31884f2796c48cb05488341d9c3b0b00b4d2fd13c23b439c74047c88

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