To clone the repository you may do the following:
git clone --recurse-submodules git@github.com:ambra-dipiano/astroRT.git
To create a virtual environment with all required dependencies:
conda env create -f environment.yml
Note that you should already have anaconda anaconda installed. Once the environment is created, proceeded to install the software.
conda activate astrort
source install.sh
To install an editable version use instead:
source install_dev.sh
Alternatively you can try creating a venv
environment. Note that you will require to install cfitsio
, gammalib
and ctools
from source.
To cerate the environment:
python -m venv astrort
source astrort/bin/activate
Now you need to download and install cfitsio
:
wget https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-4.3.1.tar.gz
tar zxvf cfitsio-4.3.1.tar.gz
cd cfitsio-4.3.1
./configure --prefix=/path/to/venv/astrort
make
make install
make clean
Now you need to download and install gammalib
:
wget http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-2.0.0.tar.gz
tar zxvf gammalib-2.0.0.tar.gz
cd gammalib-2.0.0
./configure --prefix=/path/to/venv/astrort
make
make install
make clean
Now you need to download and install ctools
:
wget http://cta.irap.omp.eu/ctools/releases/gammalib/ctools-2.0.0.tar.gz
tar zxvf ctools-2.0.0.tar.gz
cd ctools-2.0.0
./configure --prefix=/path/to/venv/astrort
make
make install
make clean
Once this has been done, you may complete the environment with:
python -m pip install -r requirements.txt
You may install the software with pip:
source install.sh
To install an editable version use instead:
source install_dev.sh