Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
installation_nmma [2022/02/01 10:29] theoastro |
installation_nmma [2023/06/10 18:51] (current) theoastro |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Installation ===== | ===== Installation ===== | ||
- | === Setting up a virtual environment | + | For the installation of NMMA on smaller servers (e.g. our Uni Potsdam machines) |
- | 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 [[https:// | + | === Installation on Uni Potsdam machines === |
- | python3 -m venv / | + | Here, we use a [[https:// |
- | + | conda create --name <name_of_env> python=3.8 | |
- | This creates a local environment under / | + | For the conda environment creation, make sure to use python=3.8 as all dependencies of all included packages work best with this python |
- | source / | + | |
- | + | ||
- | Another way is to install | + | |
- | conda create --name <name> python=<version> | + | |
In order to activate the conda environment, | In order to activate the conda environment, | ||
conda activate < | conda activate < | ||
+ | In order to allow python programs to exploit multiple processors, the [[https:// | ||
+ | conda install mpi4py | ||
- | === Cloning and installation === | + | NMMA can be source cloned from the git repo with the following command: |
+ | git clone https:// | ||
- | With activated virtual environment, | + | We change into the cloned NMMA directory and pip install it using: |
- | pip install | + | pip install |
+ | pip install . | ||
- | In order to allow python | + | === Installation on Super-Computer Clusters (e.g. Supermuc) === |
- | | + | For larger computer clusters, a virtual |
+ | python3 -m venv /path/to/ | ||
+ | |||
+ | This creates a local environment under / | ||
+ | source | ||
+ | |||
+ | With activated virtual environment, | ||
+ | | ||
+ | |||
+ | If this is done, all the other steps can be taken from the installation version explained above, meaning source cloning NMMA and pip installing it with potential on-top installations explained below. | ||
+ | |||
+ | === Optional on-top installations (applicable for both installation versions) === | ||
+ | Some further installations (use-case dependent) might be needed. For GRB based analyses make sure to install | ||
+ | pip install afterglowpy | ||
+ | For using tensorflow-based interpolation during an inference make sure to install | ||
+ | pip install imgaug==0.2.6 | ||
+ | pip install tensorflow-cpu | ||
- | In addition, install: | ||
- | conda install -c conda-forge parallel_bilby |
Last modified: le 2022/02/01 10:29