https://github.com/hongwanliu/DarkHistory

DarkHistory

arXiv

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.

Installation

Updated 2025/06/16

conda create -n darkhistory python=3.12 pip
conda activate darkhistory
pip install .

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.

Recent updates