Skip to main content

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.

Release files for gw-eccentricity 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gw-eccentricity 2.1.0
File Size Uploaded
gw_eccentricity-2.1.0.tar.gz 143.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gw-eccentricity 2.1.0
File Interpreter ABI Platform
gw_eccentricity-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 301.7 kB

Release files / gw_eccentricity-2.1.0.tar.gz

Download URL gw_eccentricity-2.1.0.tar.gz
Size 143.0 kB
Tags Source
SHA-256 checksum
How to use checksums
38dd6b60a3892051cd9e120dbe7fcc731fbca76948776dea4ef5ac0bf58b9f79
BLAKE2b-256 checksum
How to use checksums
24909b547e7c281e272639338c34b7a68be41031290975e4a138511cb5caf99c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.18

Release files / gw_eccentricity-2.1.0-py3-none-any.whl

Download URL gw_eccentricity-2.1.0-py3-none-any.whl
Size 158.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87bf8054639a2e936fd451cf8542e95e1f609bc21f67523fcde746ab0b911f92
BLAKE2b-256 checksum
How to use checksums
c63ca751a097757035c4f4455ffea6269b889ead161c285ebb69ba2bfaaad216
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.18

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page