Instructions Gwemopt

instructions_gwemopt

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 3

DownloadInstructions Gwemopt
Open PDF In BrowserView PDF
Instructions for installing gwemopt on UNIX
Geoffrey Mo, Carleton College
mog@carleton.edu
June 7, 2018

These are instructions for setting up the gwemopt tool primarily written by Michael Coughlin.
These instructions were written for a machine running Ubuntu 16.04, but should work for most
UNIX distributions. As far as I know, these instructions are not compatible with macOS.
In these instructions, $ ls means to run ls.

1

Installing Anaconda

Any Python 2.7 distribution will work, but Anaconda comes with many of the packages required
and can be installed completely locally, so it is convenient to use. If you prefer not to use Anaconda,
skip this step, but you may have to install additional packages not mentioned in these instructions.
1. Go to https://www.anaconda.com/download/#linux and download the Anaconda 2.7 installer. Put it in your home directory.
2. $ cd ∼
3. $ bash Anaconda-latest-Linux-x86 64.sh
4. Hold down the enter key to skip through all the licensing, then type “yes” to agree to the
terms.
5. We want to install this locally, so the /anaconda2 location given by default is good.
6. When prompted, type “yes” to prepending to PATH in /.bashrc. This is so when you type
$ python in the command line you get this Anaconda distribution of Python.

2

Installing Python packages
1. $ pip install --user lscsoft-glue healpy astroplan astropy ligo-gracedb pyephem
mocpy astropy healpix gwemopt pymultinest

3

Downloading gwemopt
1. $ git clone https://github.com/mcoughlin/gwemopt. I did this in my home directory.
2. To install this, $ cd gwemopt and then $ python setup.py install --user

1

4

Installing MultiNest and PyMultiNest

MultiNest and its Python wrapper PyMultiNest are required, but have slightly more involved
installation procedures. These instructions are a more detailed version of what is written here:
https://johannesbuchner.github.io/PyMultiNest/install.html. To begin, in your home directory, $ git clone https://github.com/JohannesBuchner/MultiNest and
$ git clone https://github.com/JohannesBuchner/PyMultiNest.git.

4.1

Installing cmake

The MultiNest installation requires a C compiler. If you have one already, feel free to skip this
subsection.
1. Go to https://cmake.org/download/ and download the Unix .tar.gz tarball (cmake-3.11.3.tar.gz
is the latest release at time of writing). I put it in my home directory.
2. To open up the tarball, run $ tar -zxvf cmake-3.11.3.tar.gz
3. $ cd cmake-3.11-3
4. $ ./bootstrap && make && sudo make install. This will take a few minutes, so go get
some coffee.

4.2

Installing other dependencies for MultiNest

1. $ sudo apt-get update to update the list from where apt-get pulls.
2. $ sudo apt-get install libblas-dev liblapack-dev

4.3

Building MultiNest and PyMultiNest

1. $ cd ∼/MultiNest/build
2. $ cmake ..

&& build

3. To add MultiNest to your path right now and forever (by adding it to your /.bashrc),
$ export LD LIBRARY PATH=∼/MultiNest/lib/:$LD LIBRARY PATH and
$ echo 0 export LD LIBRARY PATH=∼/MultiNest/lib/:$LD LIBRARY PATH0 >>∼/.bashrc
4. $ cd ∼/PyMultiNest
5. $ python setup.py install --user
6. Adding PyMultiNest to your path right now and forever,
$ export PATH=$PATH:$HOME/.local/bin/ and
$ echo 0 export PATH=$PATH:$HOME/.local/bin/0 >>∼/.bashrc

5

Testing the installation

Now you should have everything installed. To test this, we will run a command which will return
skymaps.
1. $ cd ∼/gwemopt/bin/
2

2. In the next command, the --doEvent flag uses the LIGO GraceDb database and hence
requires a LIGO login certificate. Do this with $ ligo-proxy-init.
3. Now we will run the test command.
$ python gwemopt_run -l ../lightcurves/Me2017_H4M050V20.dat --doEvent --do3D
--doTiles --doPlots --doSchedule --tilesType hierarchical
--timeallocationType powerlaw --scheduleType greedy --doEfficiency -o
../hierarchical_powerlaw_greedy --powerlaw_dist_exp -2.0 --Ninj 1000

4. This should return plots and skymaps in the /gwemopt/hierarchical powerlaw greedy/ directory.

3



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.5
Linearized                      : No
Page Count                      : 3
Page Mode                       : UseOutlines
Author                          : 
Title                           : 
Subject                         : 
Creator                         : LaTeX with hyperref package
Producer                        : pdfTeX-1.40.17
Create Date                     : 2018:06:07 00:40:10-05:00
Modify Date                     : 2018:06:07 00:40:10-05:00
Trapped                         : False
PTEX Fullbanner                 : This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) kpathsea version 6.2.2
EXIF Metadata provided by EXIF.tools

Navigation menu