https://github.com/hongwanliu/DarkHistory
DarkHistory is a Python code package that calculates the global temperature and ionization history of the universe given an exotic source of energy injection, such as dark matter annihilation or decay. DarkHistory is described in a paper available at arXiv:1904.09296. Please cite this paper if you use DarkHistory in a scientific publication. For detailed information, please visit our readthedocs webpage here.
Updated 2025/06/16
master, lowengelec_upgrade, and early_halo_cooling.conda:conda create -n darkhistory python=3.12 pip
conda activate darkhistory
pip in the DarkHistory/ directorypip install .
DH_DATA_DIR to the directory containing data files,data_path_default in darkhistory/config.py directly.DarkHistory is now ready to use. You can test your installation with the example code below. Additionally, familiarize yourself with DarkHistory by exploring the notebooks in the examples/ directory.