Installation and requirements
ECHO21 package can be installed as
pip install echo21
I have tested the code on Python==3.10.20. Other special packages required:
numpy (tested for 1.26.4)
scipy (tested for 1.15.3)
mpi4py (tested for 4.1.2)
tqdm (tested for 4.68.1)
colossus (tested for 1.4.0)
pandas (tested for 2.3.3)
tables (tested for 3.10.1)
The following two additional packages are required for simulation of the interacting dark matter (IDM) model. Because CLASS requires an older version of Cython, I recommend creating a dedicated environment (such as conda) to avoid conflicts with your existing packages.
Follow the Anaconda website for the steps to install Miniconda. Then follow these steps:
conda create -n echoenv python
conda install numpy scipy matplotlib cython=0.29 gcc_linux-64 gxx_linux-64 make
git clone -b dmeff https://github.com/kboddy/class_public.git
cd class_public
make clean
make
Now the CLASS code should hopefully be installed in your echoenv environment.