Wiki

Clone wiki

cosmosis / Mac Installs

1 General Dependencies

CosmoSIS requires recent-ish C and C++ compilers (GCC 4.8 and above will work, as will recent versions of the native clang on MacOS).

CosmoSIS requires:

and the following libraries:

You can get these using Homebrew using the command:

brew install git gcc gsl cfitsio fftw minuit2 openblas

Python Dependencies

Installed the python dependencies by running:

pip install -r config/requirements.txt

You may have to add --user if you have a permissions problem.

To sample in parallel you will need an MPI installation. On most clusters and supercomputers this is pre-installed. You need to make sure you have mpi4py installed as well, using the same MPI and python:

pip install --no-binary --no-wheel mpi4py

Again, you may have to add --user

2 Download

Download CosmoSIS and the standard library like this (we currently require the development version on macs):

git clone http://bitbucket.org/joezuntz/cosmosis
cd cosmosis
git checkout develop
git clone http://bitbucket.org/joezuntz/cosmosis-standard-library
cd cosmosis-standard-library
git checkout develop

3 Setup script

Run the command:

source config/setup-cosmosis-mac

You need to do this each time you open a new terminal.

4 Build

Run the command:

make

#5 Usage

Test your installation by running:

cosmosis demos/demo1.ini

See the demo 1 page for an explanation.

If you quit your terminal shell and start a new one then you need to repeat this step:

source config/setup-cosmosis-mac

6 External Data Sets

For some use cases you may also want to install Planck or WMAP data:

  • planck data (optional; for some demos and for using Planck likelihoods. Go to the "cosmology" link)
  • wmap data (optional; for using WMAP likelihoods)

Updated