Installation
Prerequisites
The SkyLLH framework has several dependencies. They are listed in requirements.txt file:
astropy
numpy
scipy
iminuit
matplotlib
They can be installed from skyllh directory with:
pip install -r requirements.txt
On cobalt and NPX servers we can use CVMFS Python 3 virtual environment with all necessary packages already installed. In order to activate it run:
eval `/cvmfs/icecube.opensciencegrid.org/py3-v4.1.1/setup.sh`
Setup
The framework is split into two packages:
contains open source code with classes defining detector independent likelihood framework
contains collections of pre-defined SkyLLH IceCube analyses and pre-defined IceCube datasets
In order to set it up, we have to clone git repositories and add them to the PYTHONPATH:
git clone git@github.com:icecube/skyllh.git
git clone git@github.com:icecube/i3skyllh.git
export PYTHONPATH=$PYTHONPATH:/path/to/skyllh
export PYTHONPATH=$PYTHONPATH:/path/to/i3skyllh
Alternatively, we can add then inside python script:
import sys
# Add skyllh and i3skyllh projects to the PYTHONPATH
sys.path.insert(0, '/path/to/skyllh')
sys.path.insert(0, '/path/to/i3skyllh')