This is an old revision of the document!
Installation
Setting up a virtual environment (Optional)
While it is not strictly necessary, it reduces possible conflicts if one installs python packages that do not need to be available system-wide into local, virtual environments. An easy option to setup such virtual environments is the venv module.
python3 -m venv /path/to/new/virtual/environment
This creates a local environment under /path/to/new/virtual/environment, which can be loaded via:
source /path/to/new/virtual/environment/bin/activate
Another way is to install a mini conda environment, in which separate virtual environments can be created with:
conda create --name <name> python=<version>
In order to activate the conda environment, you can use:
conda activate <name_of_env>
Cloning and installation
With activated virtual environment, basic packages need to be installed with:
pip install afterglowpy extinction dill multiprocess bilby lalsuite
In order to allow python programs to exploit multiple processors, the mpi4py packages needs to be installed using:
conda install mpi4py
In addition, install:
conda install -c conda-forge parallel_bilby
Currently, in order to install NMMA you would need to have an account at bitbucket and you need to get invited by Peter T. H. Pang (mailto: thopang@nikhef.nl) to get access. With your username at hand, you can clone the NMMA python package. For that, it is recommendable to create a separate source directory (src/) and clone it in there with:
git clone https://<your_user_name>@bitbucket.org/petertsunhopang/nmma.git
This will create an nmma folder, in which you can install the NMMA package using:
pip install .