-
Notifications
You must be signed in to change notification settings - Fork 117
Installation
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.
To install CLASS wrapper, please look at the wiki of CLASS
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.