- Clone the DarkHistory repository here. Checkout branch
DM21cm
. - Install the require packages via
pip install -r requirements.txt
. - Set environment variable
DH_DIR
to point to the project folder (directory containingREADME.md
). - Set environment variable
DH_DATA_DIR
to point to the DarkHistory data (v1.1) folder (directory containingbinning.p
). The data files can be downloaded here.
- Clone the 21cmFAST fork here. Checkout branch
master
. - Install 21cmFAST according to README.md
- Install gcc and have environment variable
CC
point to the binary. - Install gsl (GNU Scientific Library) and have
GSL_LIB
point to the directory of the library. - Install fftw and have
FFTW_INC
point to the directory containing fftw header files. - Install
21cmFAST
viapip install .
in the project directory.
- Install gcc and have environment variable
- Set environment variable
P21C_CACHE_DIR
to a directory for storing cached files (requries at least 10G for a 128^3 box 1.01 redshift step run).
- Clone this repository. Checkout branch
main
. - Download data files from here.
- Install the require packages via
pip install -r requirements.txt
. We recommend installingJAX
according to your hardware (e.g. GPU) specification. - Set environment variable
DM21CM_DIR
to point to the project folder (directory containingREADME.md
). - Set environment variable
DM21CM_DATA_DIR
to point to the data folder (directory containingabscissas.h5
).
Yitian Sun, Joshua W. Foster, Hongwan Liu, Julian B. Muñoz, and Tracy R. Slatyer