gwBOB
The Backwards-One-Body Gravitational Waveform Package
Getting Started
Please see more detailed documentation here!
What is the Backwards One Body Model?
The Backwards One Body (BOB) model is an analytical and physically motivated approach to modeling gravitational waveforms from black hole binary mergers, as described in arXiv:1810.00040. The BOB model is based on the physical insight that, during the late stages of binary evolution, the spacetime dynamics of the binary system closely resemble a linear perturbation of the final, stationary black hole remnant.
Features
- Analytical accuracy: Closed form expressions for the amplitude and frequency evolution.
- Minimally Calibrated: Requires minimal calibration to numerical relativity (NR)
- Test all BOB flavors Easily generate and switch between different "flavors" of BOB depending on your research problem.
- Easy initialization Easy initialization using SXS, CCE, or raw NR data.
- Beyond Kerr waveforms Compare NR data to BOB waveforms generated with custom QNMs.
- Easy comparisons: Easy comparisons to waveforms from the public SXS and CCE catalog, as well as raw NR data.
- Well Documented and Actively Developed
Generate plots like these with just a few lines of code!
Requirements
- (Windows users should use WSL)
kuibitsxsqnmfitsscrijax(install the GPU compatible version if possible)sympynumpyscipymatplotlib
Install via pip
pip install gwBOB
Running the Tests
If you've cloned the repo and want to run the test suite:
cd BackwardsOneBody/
pip install -e ".[tests]"
# Unit tests are fast and need no external data:
pytest tests/unit/
# Integration tests need ~90 MB of waveform data from the SXS catalog and
# the Zenodo CCE record. Fetch it once:
python tests/fetch_data.py
pytest tests/
Citing this Code
If you use this code please cite
@article{mcwilliams2019analytical,
title={Analytical black-hole binary merger waveforms},
author={McWilliams, Sean T},
journal={Physical review letters},
volume={122},
number={19},
pages={191102},
year={2019},
publisher={APS}
}
@misc{kankani2025bobwaveformbuilderoptimizing,
title={BOB the (Waveform) Builder: Optimizing Analytical Black-Hole Binary Merger Waveforms},
author={Anuj Kankani and Sean T. McWilliams},
year={2025},
eprint={2510.25012},
archivePrefix={arXiv},
primaryClass={gr-qc},
url={https://arxiv.org/abs/2510.25012},
}
JOSS paper to be added. If you have any issues with this code, want any new features, or use this code for your own research, please let me know!
AI Usage
While the original code was written largely manually, this code is now mostly developed through the use of Claude Code. AI usage follows the JOSS policy on AI usage. All design decisions are made by humans. All LLM generated code is verified manually by humans. Throughout the code you will likely see comments starting with "Claude Code:" that refer to specific MD files. These files are not part of the git but Anuj will share them on request.
Contributing
Contributions are always welcome! If you find an issue, or have any questions on how to use the code, please raise an issue on this repo. If you want to contribute directly to the code, please fork the code and create a pull request!
Metadata
Release files for gwBOB 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gwbob-1.2.0.tar.gz | 52.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gwbob-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 103.2 kB
Release files / gwbob-1.2.0.tar.gz
| Download URL | gwbob-1.2.0.tar.gz |
|---|---|
| Size | 52.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cabf09e2cc761aafa3335503ccd46a66c2facd9dbde441ae3f87aba116ca98eb
|
|
BLAKE2b-256 checksum How to use checksums |
5eda8bb80124da1ac882a039e8c6b3730d373f9301de3bf04a324163fb70c48b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.20
|
Release files / gwbob-1.2.0-py3-none-any.whl
| Download URL | gwbob-1.2.0-py3-none-any.whl |
|---|---|
| Size | 51.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9006fa9a941a78a44106363d8a7727d5df47a4d95b4a4d686f1957cee459d78e
|
|
BLAKE2b-256 checksum How to use checksums |
7449780987a0617e1308714bad788d14fe8dc26ce3cad1f01f76f5f158c41dde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.20
|