This package contains the halo mass function emulator described in [2410.00913] for cluster mass scales (
The repository with all the numerical studies and code to build this emulator can be found here
If you have any questions at all about the code, I'm always open to chat, just let me know at delon@stanford.edu
numpyscipyclassypytest
Download this repository and in the base directory run
python setup.py install
To validate your installation, you can run
pytest
For a thorough introduction, see Tutorial.ipynb. For something simple:
from aemulusnu_hmf.emulator import dn_dM
cosmology = {'ns': 0.97,
'H0': 67.0,
'w0': -1.0,
'ombh2': 0.0223,
'omch2': 0.12,
'nu_mass_ev': 0.07,
'10^9 As': 2.1}
Ms = np.logspace(12, 16, 100) #in units of Msol / h
mass_function = dn_dM(cosmology, Ms, a = 1.0) #in units of h^4 / (Mpc^3 Msol)If you use the Aemulus
@article{Shen:2024cio,
author = "Shen, Delon and Kokron, Nickolas and DeRose, Joseph and Tinker, Jeremy and Wechsler, Risa H. and Banerjee, Arka",
collaboration = "Aemulus",
title = "{Aemulus \ensuremath{\nu}: precision halo mass functions in w\ensuremath{\nu}CDM cosmologies}",
eprint = "2410.00913",
archivePrefix = "arXiv",
primaryClass = "astro-ph.CO",
doi = "10.1088/1475-7516/2025/03/056",
journal = "JCAP",
volume = "03",
pages = "056",
year = "2025"
}
@article{DeRose:2023dmk,
author = "DeRose, Joseph and Kokron, Nickolas and Banerjee, Arka and Chen, Shi-Fan and White, Martin and Wechsler, Risa and Storey-Fisher, Kate and Tinker, Jeremy and Zhai, Zhongxu",
title = "{Aemulus \ensuremath{\nu}: precise predictions for matter and biased tracer power spectra in the presence of neutrinos}",
eprint = "2303.09762",
archivePrefix = "arXiv",
primaryClass = "astro-ph.CO",
doi = "10.1088/1475-7516/2023/07/054",
journal = "JCAP",
volume = "07",
pages = "054",
year = "2023"
}