Skip to main content

Defining eccentricity for gravitational wave astronomy.

Project description

Eccentric gravitational wave signal

Defining eccentricity for gravitational wave astronomy

github PyPI version Conda (channel only) license Build Status Documentation Status

About

gw_eccentricity provides methods to measure eccentricity and mean anomaly from gravitational waveforms of binaries on generic bound orbits.

These methods are described in the following paper:

Please see Credits below for citing this work. This package lives on GitHub, is compatible with python3, and is tested every week. You can see the current build status of the main branch at the top of this page.

Installation

PyPI

gw_eccentricity is available through PyPI:

pip install gw_eccentricity

or

pip install "gw_eccentricity[postprocess]"

to additionally install the functionality for postprocessing posterior samples from parameter estimation pipelines.

Conda

gw_eccentricity can be installed using conda also:

conda install -c conda-forge gw_eccentricity

or

conda install -c conda-forge gw_eccentricity gw_eccentricity-postprocess

From source

git clone git@github.com:vijayvarma392/gw_eccentricity.git
cd gw_eccentricity
pip install .

or

pip install .["postprocess"]

If you do not have root permissions, replace the last step with pip install --user .

Dependencies

All of these can be installed through pip or conda.

Core

Postprocessing

These are installed automatically with pip install "gw_eccentricity[postprocess]" or conda install gw_eccentricity-postprocess:

Usage

See example notebooks:

Postprocessing posterior samples

See the example notebooks and scripts here for postprocessing posterior from parameter estimation pipelines.

Making contributions

See this README for instructions on how to make contributions to this package.

Please report bugs by raising an issue on our GitHub repository.

Credits

The main contributors to this code are Md Arif Shaikh, Vijay Varma, and Harald Pfeiffer. You can find the full list of contributors here.

If you find this package useful in your work, please cite references [1] and [2] and this package. You can use the following bibtex keys:

@article{Shaikh:2023ypz,
    author = "Shaikh, Md Arif and Varma, Vijay and Pfeiffer, Harald P. and Ramos-Buades, Antoni and van de Meent, Maarten",
    title = "{Defining eccentricity for gravitational wave astronomy}",
    eprint = "2302.11257",
    archivePrefix = "arXiv",
    primaryClass = "gr-qc",
    doi = "10.1103/PhysRevD.108.104007",
    journal = "Phys. Rev. D",
    volume = "108",
    number = "10",
    pages = "104007",
    year = "2023",
    note = "{\href{https://pypi.org/project/gw_eccentricity}{pypi.org/project/gw\_eccentricity}}",
}

@article{Shaikh:2025tae,
    author = "Shaikh, Md Arif and Varma, Vijay and Ramos-Buades, Antoni and Pfeiffer, Harald P. and Boyle, Michael and Kidder, Lawrence E. and Scheel, Mark A.",
    title = "{Defining eccentricity for spin-precessing binaries}",
    eprint = "2507.08345",
    archivePrefix = "arXiv",
    primaryClass = "gr-qc",
    doi = "10.1088/1361-6382/ae085d",
    journal = "Class. Quant. Grav.",
    volume = "42",
    number = "19",
    pages = "195012",
    year = "2025",
	note = "{\href{https://pypi.org/project/gw_eccentricity}{pypi.org/project/gw\_eccentricity}}",
}

Image at the top shows an eccentric gravitational wave signal (SXS:BBH:2558) from arXiv:2209.03390.

Project details


Download files

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

Source Distribution

gw_eccentricity-2.1.0.tar.gz (143.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gw_eccentricity-2.1.0-py3-none-any.whl (158.7 kB view details)

Uploaded Python 3

File details

Details for the file gw_eccentricity-2.1.0.tar.gz.

File metadata

  • Download URL: gw_eccentricity-2.1.0.tar.gz
  • Upload date:
  • Size: 143.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for gw_eccentricity-2.1.0.tar.gz
Algorithm Hash digest
SHA256 38dd6b60a3892051cd9e120dbe7fcc731fbca76948776dea4ef5ac0bf58b9f79
MD5 ca7274cc31ad978e075863550c03e963
BLAKE2b-256 24909b547e7c281e272639338c34b7a68be41031290975e4a138511cb5caf99c

See more details on using hashes here.

File details

Details for the file gw_eccentricity-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: gw_eccentricity-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 158.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for gw_eccentricity-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87bf8054639a2e936fd451cf8542e95e1f609bc21f67523fcde746ab0b911f92
MD5 6fa5bbf085decac33ea9dbbb86af269f
BLAKE2b-256 c63ca751a097757035c4f4455ffea6269b889ead161c285ebb69ba2bfaaad216

See more details on using hashes here.

Supported by

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