Installation

To install the cluster_toolkit you currently need to build it from source:

git clone https://github.com/tmcclintock/cluster_toolkit.git
cd cluster_toolkit
python setup.py install

To run the tests you can do:

python setup.py test

Requirements

This package has only ever been tested with Python 2.7.x and has some dependencies. The Python dependencies that you can get with pip are:

  • Numpy: 1.13 or later
  • cffi: 1.10 or later
  • pytest: 3.x or later for testing

In addition, you must have the GNU Science Library (GSL) installed. If you follow the instructions in their INSTALL file you will be done in only a few lines in the terminal. There is a pip installable GSL, but I do not know if it will work with the cluster toolkit.

Furthermore, while it is not a dependency of this code, for some of the functions you will need a way to calculate the linear and nonlinear matter power spectra \(P(k)\). Two good options are CAMB and CLASS. Both are also available in the Core Cosmology Library.