Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
installation_nmma [2023/06/10 18:34]
theoastro
installation_nmma [2023/06/10 18:51] (current)
theoastro
Line 15: Line 15:
   conda install mpi4py   conda install mpi4py
  
-=== Installation on Super-Computer Clusters (e.gSupermuc) ===+NMMA can be source cloned from the git repo with the following command: 
 +  git clone https://github.com/nuclear-multimessenger-astronomy/nmma.git
  
 +We change into the cloned NMMA directory and pip install it using:
 +  pip install -r requirements.txt
 +  pip install .
  
-While it is not strictly necessaryit 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://docs.python.org/3/library/venv.html#module-venv|venv]] module. +=== Installation on Super-Computer Clusters (e.g. Supermuc) === 
 +For larger computer clustersa virtual python-based environment is recommended which can be created using:
   python3 -m venv /path/to/new/virtual/environment   python3 -m venv /path/to/new/virtual/environment
  
Line 25: Line 29:
   source /path/to/new/virtual/environment/bin/activate   source /path/to/new/virtual/environment/bin/activate
  
 +With activated virtual environment, we now install **mpi4py** this time with pip:
 +  pip install mpi4py 
  
 +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.
  
-=== Cloning and installation === +=== 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 
-With activated virtual environment, basic packages need to be installed with: +  pip install afterglowpy 
-  pip install afterglowpy extinction dill multiprocess bilby lalsuite +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 +
- +
-NMMA can be source cloned from the git repo with the following command: +
-  git clone git@github.com:nuclear-multimessenger-astronomy/nmma.git +
- +
-This will create an nmma folder, in which you can install the NMMA package using: +
-  pip install .+
  
-=== Optional on-top installations === 
-Several tasks require the Bayesian inference tool [[https://github.com/JohannesBuchner/MultiNest|Multinest]], which can be installed using: 
-  conda install pymultinest 
Last modified: le 2023/06/10 18:34