EffectiveHalos can be installed either from pip or by cloning the GitHub repository. Note that CLASS (and the classy Python wrapper) must be installed first, as described in Dependencies.
Installation via pip¶
We recommend that EffectiveHalos is installed via pip:
pip install EffectiveHalos (--user)
This installs the latest release of the code.
Installation from source¶
EffectiveHalos can also be installed directly from the git repository:
git clone https://github.com/oliverphilcox/EffectiveHalos.git cd EffectiveHalos python -m pip install . (--user)
This will install the current master branch of the git repository.
- cython (for CLASS)
To run EffectiveHalos, we require the Boltzmann code CLASS along with its Python wrapper classy. This can be installed from the CLASS Github and is used to compute the linear power spectrum for a specified cosmology.
The basic installation follows:
# Clone the class repository git clone https://github.com/lesgourg/class_public.git # Now install cd class_public make clean make
For further details, including the modifications required for Mac compilation, see the CLASS wiki. Note that, if a modified version of CLASS is installed (e.g. CLASS-PT) which modifies the classy wrapper, EffectiveHalos will use this instead.
EffectiveHalos uses Joe McEwen’s FAST-PT package to compute one-loop power spectra from the CLASS linear power spectrum. This is probably installed alongside EffectiveHalos. If not, it is easiest to install from pip:
pip install fast-pt (--user)
EffectiveHalos uses the mcfit for integral transforms. This is probably installed alongside EffectiveHalos. If not, it is easiest to install from pip:
pip install mcfit (--user)