No project description provided
Project description
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1e7059ea27c101e98c89d52aeffef6a4f068d52104abe76232c314edcb42beb
|
|
| MD5 |
e7225454015986f63bee253e2e2b95f6
|
|
| BLAKE2b-256 |
98632a054aef68a1b3f245312a89683a8f975bbcc772bbb580497e23a341df76
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad5da3fa0d6e50e692edd84cc856458d7caccab6bc53606c4a6087e7cb21440c
|
|
| MD5 |
54a58d88b6973e8af842edee14fa59c2
|
|
| BLAKE2b-256 |
49027be18fa72e4434d0f3ce5ec1c0bba08eb8647554f57cc1a4c60f3ad08742
|