diffmah
Installation
The latest release of diffmah is available for installation with pip or conda-forge:
$ conda install -c conda-forge diffmah
To install diffmah into your environment from the source code:
$ cd /path/to/root/diffmah
$ pip install .
Environment configuration
For a typical development environment in conda:
$ conda create -c conda-forge -n diffit python=3.9 numpy jax pytest ipython jupyter matplotlib scipy h5py diffmah
Project data
Data for this project can be found at this URL.
Documentation
Online documentation for Diffmah is available at diffmah.readthedocs.io.
Scripts and demo notebooks
The diffmah_fitter_demo.ipynb notebook demonstrates how to fit the MAH of a simulated halo with a diffmah approximation. See history_fitting_script.py for an example of how to fit the MAHs of a large number of simulated halos in parallel with mpi4py.
Citing diffmah
The diffmah paper has been published by the Open Journal of Astrophysics. Citation information for the paper can be found at this ADS link, copied below for convenience:
@ARTICLE{2021OJAp....4E...7H,
author = {{Hearin}, Andrew P. and {Chaves-Montero}, Jon{\'a}s and {Becker}, Mathew R. and {Alarcon}, Alex},
title = "{A Differentiable Model of the Assembly of Individual and Populations of Dark Matter Halos}",
journal = {The Open Journal of Astrophysics},
keywords = {Astrophysics - Cosmology and Nongalactic Astrophysics, Astrophysics - Astrophysics of Galaxies},
year = 2021,
month = jul,
volume = {4},
number = {1},
eid = {7},
pages = {7},
doi = {10.21105/astro.2105.05859},
archivePrefix = {arXiv},
eprint = {2105.05859},
primaryClass = {astro-ph.CO},
adsurl = {https://ui.adsabs.harvard.edu/abs/2021OJAp....4E...7H},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
Metadata
Release files for diffmah 0.7.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| diffmah-0.7.3.tar.gz | 156.9 kB | Without provenance | Details |
Release files / diffmah-0.7.3.tar.gz
| Download URL | diffmah-0.7.3.tar.gz |
|---|---|
| Size | 156.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45ae5fcc1c1dd8d5379ab44a3b14cf72a2c0e5c7aeab0bf29660318357582583
|
|
BLAKE2b-256 checksum How to use checksums |
8937080b79a669bcf6ccb17eaa1108a807b49e424005adb84245a27675105ed6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for diffmah 0.7.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.