Skip to main content

A python package for GW-EM Followup Optimization

Project description

gwemopt

Gravitational-wave Electromagnetic Optimization

Coverage Status CI PyPI version

Citing gwemopt

When utilizing this code for a publication, kindly make a reference to the package by its name, gwemopt, and a citation to the software papers Optimizing searches for electromagnetic counterparts of gravitational wave triggers and Teamwork Makes the Dream Work: Optimizing Multi-Telescope Observations of Gravitational-Wave Counterparts. The BibTeX entry for the papers are:

@article{Coughlin:2018lta,
    author = "Coughlin, Michael W. and others",
    title = "{Optimizing searches for electromagnetic counterparts of gravitational wave triggers}",
    eprint = "1803.02255",
    archivePrefix = "arXiv",
    primaryClass = "astro-ph.IM",
    doi = "10.1093/mnras/sty1066",
    journal = "Mon. Not. Roy. Astron. Soc.",
    volume = "478",
    number = "1",
    pages = "692--702",
    year = "2018"
}

and

@article{Coughlin:2019qkn,
    author = "Coughlin, Michael W. and others",
    title = "{Optimizing multitelescope observations of gravitational-wave counterparts}",
    eprint = "1909.01244",
    archivePrefix = "arXiv",
    primaryClass = "astro-ph.IM",
    doi = "10.1093/mnras/stz2485",
    journal = "Mon. Not. Roy. Astron. Soc.",
    volume = "489",
    number = "4",
    pages = "5775--5783",
    year = "2019"
}

and for the ability to balance field exposures Dynamic scheduling: target of opportunity observations of gravitational wave events.

@article{Almualla:2020hbs,
    author = "Almualla, Mouza and Coughlin, Michael W. and Anand, Shreya and Alqassimi, Khalid and Guessoum, Nidhal and Singer, Leo P.",
    title = "{Dynamic Scheduling: Target of Opportunity Observations of Gravitational Wave Events}",
    eprint = "2003.09718",
    archivePrefix = "arXiv",
    primaryClass = "astro-ph.HE",
    doi = "10.1093/mnras/staa1498",
    month = "3",
    year = "2020"
}

Setting up the environment

If you want the latest version, we recommend creating a clean environment:

conda create -n gwemopt python=3.11
git clone git@github.com:skyportal/gwemopt.git
cd gwemopt
pip install -e .
pre-commit install

or if you just want the latest version released on PyPI:

pip install gwemopt

If you run into dependency issues, you can try installing dependencies via conda:

conda install numpy scipy matplotlib astropy h5py shapely
conda install -c astropy astroquery
conda install -c conda-forge voeventlib astropy-healpix python-ligo-lw ligo-segments ligo.skymap ffmpeg

And then run pip install -e . again.

Usage

Once installed, You can use gwemopt via the command line:

gwemopt-run ....

where ... corresponds to the various arguments.

Tests

To run the tests, you'll first need to install gwemopt with the testing dependencies:

pip install -e ".[test]"

Then you can run the tests using:

coverage run -m pytest -v -s

Project details


Release history Release notifications | RSS feed

This version

0.3.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gwemopt-0.3.5.tar.gz (118.6 MB view details)

Uploaded Source

Built Distribution

gwemopt-0.3.5-py3-none-any.whl (119.4 MB view details)

Uploaded Python 3

File details

Details for the file gwemopt-0.3.5.tar.gz.

File metadata

  • Download URL: gwemopt-0.3.5.tar.gz
  • Upload date:
  • Size: 118.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for gwemopt-0.3.5.tar.gz
Algorithm Hash digest
SHA256 8c662635c53822926edaa5e5b11e3f42371a45cfd9c7a14b52a47763dc4c0a5b
MD5 646f53b50b12fc94e1a49100836f7fdd
BLAKE2b-256 22df64509f76d3ee67b614c950efe280eedcd4cd32927ad322e1d9f9a2b6e295

See more details on using hashes here.

File details

Details for the file gwemopt-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: gwemopt-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 119.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for gwemopt-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0bd7b20e2703f777319c42e824956d8b7cc84db48120cae75b957aa8e0e2a815
MD5 76c399fb1c7fb810c546fe8ea87fae24
BLAKE2b-256 e5831524c2af275f6b7656d459a35ad419bfc8eddf452552ba4ca32e0ac584fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page