Installation

Warning

POSYDON v1

You are currently viewing the documentation for POSYDON v1.0.4. If you are looking for the documentation of the latest version of POSYDON, please visit the latest documentation.

The easiest way to start with POSYDON is to install it from Anaconda (Recommended way), and call an executable script that downloads the grid data automatically.

Alternatively, if you are interested in modifying the code, you can install POSYDON manually through github (Manual Installation). Below we describe both ways.

Installing POSYDON v.1.0.4 from GitHub (Manual Installation)

Creating a conda environment

As above, we recommend using Anaconda to install POSYDON in a virtual environment. After creating the environment (you can choose any name, e.g., posydon, or posydon_env) like this:

conda create -n posydon python=3.7

Make sure you agree to any questions about installing required libraries. To proceed with the installation, you will need to activate the environment:

conda activate posydon

Cloning POSYDON

Clone the repository in a local directory, e.g. /home/POSYDON/, with

git clone https://github.com/POSYDON-code/POSYDON.git --branch v1.0.4

The directory will contain the following structure:

posydon/
README.md
setup.py
etc.

Installing POSYDON

Exporting the global path

Export the path to the cloned POSYDON code (you can add this line to your .bashrc or .bash_profile.), e.g.

export PATH_TO_POSYDON=/home/POSYDON/

Installing the package

From the cloned POSYDON directory execute the commands to install POSYDON and the mpi4py dependency. With the git cloning command above, you should have downloaded the v1.0.4 version of POSYDON.

cd $PATH_TO_POSYDON
pip install -e .
conda install mpi4py

Getting the POSYDON data

Export the path to where you want to clone the data, e.g. /home/, and download the data from ZENODO with the following commands

export PATH_TO_POSYDON_DATA=/home/
get-posydon-data

(Note that you can add the export command to your .bashrc or .bash_profile.)

Installing POSYDON documentation modules

In the case of manual installation you can also alter and build the documentation. These modules are needed in order to compile the documentation

pip install -e .[doc]

To compile the documentation and open the html page use the following commands

cd docs/
make html
open _build/html/index.html

Installation Notes/FAQ

Note

USING IPYTHON OR JUPYTER-NOTEBOOKS WITH POSYDON ENVIRONMENT

Please note that using the global instance of the conda jupyter-notebook or ipython will most likely fail when trying to use posydon. PLEASE explicitly install both into the posydon environment with either

conda install jupyter ipython

pip install jupyter ipython