Skip to content
lesgourg edited this page May 31, 2016 · 16 revisions

Download

You can find the latest release either on the official webpage or directly on Github. To download them, simply choose the format, zip or tar.gz, and unpack them locally. If you know git, it's even better, you can clone the whole repository.

It is encouraged to actually use the Github link, as it provides additional information. You can access all versions (since the passage from svn to git), and see their commit message (by clicking on the three dots ... next to the release number).

Prerequisites

Since MontePyhton is a python code, you don't need to compile it or to follow complicated installation steps: just do bthe few things described in the next section and you are ready to run. However there are prerequistes: having installed a cosmological module to work with (most probably CLASS), having a correct version of python, and having a few commonly used python modules (scipy, numpy) correctly installed. If this is the case, the steps below will work immediately, otherwise first look at the detailed "Installation Guide" of the MontePython official documentation.

Installation

Whichever method you choose to download the code, you can now go to the montepython folder.

]$ cd montepthon

The only thing you have to change for the code to work is to provide a configuration file. A template is provided with the code, named default.conf.template. Simply copy it, and edit it

montepython]$ cp default.conf.template default.conf
montepython]$ favorite-editor default.conf

and replace the paths in there to match your local configuration. Note that you can have several configuration files in your montepython/ folder, but that by default, default.conf is read. If you want to specify another one, you should run the code with the flag -conf other.conf.

To test if the installation succeeded, run

montepython]$ python montepython/MontePython.py -o test -p example.param -N 10
Clone this wiki locally