Skip to content
baudren edited this page Mar 13, 2014 · 16 revisions

Download

You can find the latest release either on the official webpage or directly on Github. 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).

To download them, simply choose the format, zip or tar.gz, and unpack them locally.

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

Of course, you need to have set up a cosmological module to work with, most probably CLASS, and installed its Python wrapper.

Clone this wiki locally