Skip to main content

No project description provided

Project description

logo

Tests Documentation Status arXiv

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 -e "git+https://github.com/fkeruzore/picasso.git#egg=picasso[jax]"

Alternatively, if you already have JAX and flax installed, you may use

pip install -e "git+https://github.com/fkeruzore/picasso.git#egg=picasso"

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{keruzore_picasso_2024,
  title={The picasso gas model: Painting intracluster gas on gravity-only simulations}, 
  author={F. Kéruzoré and L. E. Bleem and N. Frontiere and N. Krishnan and M. Buehlmann and J. D. Emberson and S. Habib and P. Larsen},
  year={2024},
  eprint={2408.17445},
  archivePrefix={arXiv},
  primaryClass={astro-ph.CO},
  url={https://arxiv.org/abs/2408.17445}, 
}

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.0.tar.gz (84.7 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.0-py3-none-any.whl (92.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: picasso_cosmo-1.1.0.tar.gz
  • Upload date:
  • Size: 84.7 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.0.tar.gz
Algorithm Hash digest
SHA256 a1e7059ea27c101e98c89d52aeffef6a4f068d52104abe76232c314edcb42beb
MD5 e7225454015986f63bee253e2e2b95f6
BLAKE2b-256 98632a054aef68a1b3f245312a89683a8f975bbcc772bbb580497e23a341df76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: picasso_cosmo-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 92.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad5da3fa0d6e50e692edd84cc856458d7caccab6bc53606c4a6087e7cb21440c
MD5 54a58d88b6973e8af842edee14fa59c2
BLAKE2b-256 49027be18fa72e4434d0f3ce5ec1c0bba08eb8647554f57cc1a4c60f3ad08742

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