Skip to main content

Differentiable model of dark matter halo assembly

Project description

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-forge:

$ 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 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}
}

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

diffmah-0.6.1.tar.gz (159.0 kB view details)

Uploaded Source

File details

Details for the file diffmah-0.6.1.tar.gz.

File metadata

  • Download URL: diffmah-0.6.1.tar.gz
  • Upload date:
  • Size: 159.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for diffmah-0.6.1.tar.gz
Algorithm Hash digest
SHA256 fd7c149fae7bd4a0da0ff33978c58aba07b2007286d802e4d41c49f8c57472b2
MD5 30469aa9230449877b03ceef6c184762
BLAKE2b-256 dcce86bbf8c68576e3137815b37ae90a481709c6beb2f4163e826ffc6de59122

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page