Installation¶
Important
The ligo.skymap
package requires Python 3.10 or later.
See our Python version support policy for more details.
On the Linux or macOS operating systems and on x86_64 or aarch64/arm64 systems,
we recommend installing ligo.skymap
using pip or conda, either of which
will automatically install all of the additional
Python dependencies.
On other operating systems and architectures, you can install from source.
ligo.skymap does not support Windows. If you need to install ligo.skymap on Windows, we suggest using a Linux virtual machine such as Windows Subsystem for Linux (WSL).
Option 1: pip¶
To install ligo.skymap
using pip, you will need pip 19.3 or later. You can
check what version of pip you have by running this command:
$ pip --version
pip 20.0.2 from /usr/local/lib/python3.10/site-packages/pip (python 3.10)
If your version of pip is too old, then you can update pip to the most recent version by running this command:
$ pip install --upgrade pip
Then, just run this command:
$ pip install ligo.skymap
You are now ready to get started using ligo.skymap
.
Option 2: conda¶
If you are using the Anaconda Python distribution or the lightweight Miniconda
version, you can install ligo.skymap
using conda. First, enable the
conda-forge repository by running these commands:
$ conda config --add channels conda-forge
$ conda config --set channel_priority strict
Then, run this command:
$ conda install ligo.skymap
You are now ready to get started using ligo.skymap
.
Note
When you use pip to install ligo.skymap
with pip or conda, it will
automatically install the following required Python packages:
Astroplan ≥ 0.7
Astropy ≥ 6.0
astropy-healpix ≥ 0.3
LALSuite ≥ 6.53, ≠ 7.2
ligo-gracedb ≥ 2.0.1
ligo-segments ≥ 1.2.0
Matplotlib ≥ 3.9.1
Numpy ≥ 1.23.0
Pillow ≥ 2.5.0
python-ligo-lw ≥ 1.8.0
Reproject ≥ 0.3.2
Scipy ≥ 0.14, ≠ 1.10.0
Shapely ≥ 2.0.0
tqdm ≥ 4.27.0
The following packages are optional for specific features.
For using DPGMM density estimation:
* FIGARO
≥ 1.7.8
For running the test suite:
For building the documentation:
Sphinx ≥ 4.0
sphinx-argparse ≥ 0.3.0
sphinxcontrib-mermaid ≥ 0.7.1
tomli ≥ 1.1.0
Optional LALSimulation Data¶
The following instructions are only relevant if you are installing ligo.skymap for the purpose of generating localizations with BAYESTAR (e.g., for analysis of LIGO/Virgo/KAGRA data or for simulations) and you are not using a LIGO Data Grid cluster.
Some gravitational waveform approximants in LALSuite (notably, reduced order models) rely on external data files. These data files are part of lalsuite-extra, which must be installed separately. To install these data files, run the following commands:
$ curl -OL https://software.igwn.org/lscsoft/source/lalsuite-extra-1.3.0.tar.gz
$ tar xf lalsuite-extra-1.3.0.tar.gz
$ cd lalsuite-extra-1.3.0
$ ./configure --prefix=$HOME/.local
$ make install
Then, add the following line to your shell profile script (~/.profile
,
~/.bashrc
, or similar):
export LAL_DATA_PATH=$HOME/.local/share/lalsimulation
Then log out and log back in.