Tupak
Fulfilling all your GW dreams.
Installation
In the following, we assume you have installed pip and git.
Install tupak
Clone the repository, install the requirements, and then install tupak
.
$ git clone git@git.ligo.org:Monash/tupak.git
$ cd tupak/
$ pip install -r requirements.txt
$ python setup.py install
Once you have run these steps, you have tupak
installed.
Install lalsuite
Many of the tupak
features rely on having a swig-wrapped lalsuite
installation. To install this head to
https://git.ligo.org/lscsoft/lalsuite
to check you have an account and SSH keys set up. Then,
$ git lfs install
$ git clone git@git.ligo.org:lscsoft/lalsuite.git
$ cd lalsuite
$ ./00boot
$ ./configure --prefix=${HOME}/lalsuite-install --disable-all-lal --enable-swig --enable-lalsimulation
$ make; make install
Warning: in the configure line here, we have disabled everything except
lalsimulation. If you need other modules, see ./configure --help
.
You could also pip install lal, lalsuite
.
Install lalsuite (optional)
If you want to use the pymultinest
sampler, you first need the
MultiNest library to be installed to work properly. The full instructions can
be found here. We
have also written a shortened tl;dr here.
Tests and coverage
To locally test the code
$ python tests.py
To locally generate a coverage report
$ pip install coverage
$ coverage run tests.py
$ coverage html
This will generate a directory htmlcov
, to see detailed coverage navigate
from your browser to the file tupak/htmlcov/index.html
.
The coverage report for master can be seen here: https://monash.docs.ligo.org/tupak/.