Pipeline for detecting circumbinary planets in TESS light curves
Project description
mono-cbp: Search for Monotransits of Circumbinary Planets
A Python package for detecting circumbinary planets in TESS eclipsing binary light curves through the identification of single transit events ("monotransits").
Overview
mono-cbp is a pipeline designed to systematically search for circumbinary planets by detecting individual transit signatures in TESS eclipsing binary systems. The pipeline automates the complete workflow from masking stellar eclipses, threshold crossing event (TCE) detection, Bayesian vetting, and completeness analysis, making it easy to process large catalogues of eclipsing binaries.
Key Features
- Eclipse Masking: Automatically mask primary and secondary eclipses in eclipsing binary light curves using eclipse positions and widths and binary ephemeris provided by an input catalogue
- Transit Detection: Removes unwanted trends from the input light curves and performs single-event detection using the by identifying Threshold Crossing Events (see Hawthorn et al. 2024)
- Bayesian Model Comparison: Event classification to discern transit-like events and systematics/detrending artefacts
- Injection-Retrieval Testing: Completeness analysis through synthetic transit injection and recovery statistics
- Modular Architecture: Use individual components independently or run the complete integrated pipeline
- Configuration-Driven: Easily customise parameters via Python dictionaries or JSON files without modifying code
- Command-Line Interface: Shell scripts and CLI subcommands for batch processing and reproducibility
Installation
Requirements
- Python 3.8 or higher (tested most rigourously with Python 3.9)
From Source
git clone https://github.com/bdrdavies/mono-cbp.git
cd mono-cbp
pip install -e .
It is advisable to install mono-cbp into a Python environment using your favourite package manager, e.g. for conda:
conda create --name mono-cbp
conda activate mono-cbp
# Install from source as above
This installs the package in editable mode and creates the mono-cbp command-line tool.
To check that the installation has been successful, you can run the following
python -c "import mono_cbp; print(mono_cbp.__version__)"
Dependencies
See requirements.txt for the complete dependency list and exact versions.
Troubleshooting Installation
scipy>=1.13.0may cause compatibility issues with PyMC 5.12.0; usescipy<1.13.0- PyTensor version must match PyMC 5.12.0 requirements (2.19.0)
Examples & Tutorials
There are a series of Jupyter notebooks in the examples/ directory to demonstrate how to use the package in your own code:
- 00_download_light_curves.ipynb - Download TESS light curves in the
mono-cbpformat using lightkurve - 01_complete_pipeline.ipynb - End-to-end workflow on sample data
- 02_eclipse_masking.ipynb - Eclipse masking demo
- 03_transit_finding.ipynb - TCE detection example
- 04_model_comparison.ipynb - Bayesian model comparison example
- 05_injection_retrieval.ipynb - Completeness testing
Documentation
Documentation is available in the docs/ directory:
- docs/quickstart.md - Quickstart guide
- docs/data_formats.md - Input and output data format specifications
- docs/configuration.md - Configuration system reference
- docs/api_reference.md - API documentation
Support & Contact
For questions, issues, or feature requests:
- Issues: Open an issue on GitHub Issues
- Documentation: Review the full documentation
- Email: ben.d.r.davies@warwick.ac.uk
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mono_cbp-0.1.1.tar.gz.
File metadata
- Download URL: mono_cbp-0.1.1.tar.gz
- Upload date:
- Size: 66.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f03b451d507024596de181e77670664ba81e7a89a6e32228315dba9cc019b4b
|
|
| MD5 |
682e505f7be432a6c6587364f605107b
|
|
| BLAKE2b-256 |
d282affd5ff99d3b7fd198d56301f172a1376a3d9e8e9f0729e36d428d2ccb64
|
File details
Details for the file mono_cbp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mono_cbp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 71.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f64110ad842499c3b4dd6c73416bd02a053bdf1101b1dd707697447d9a73450e
|
|
| MD5 |
ee042aaf84328369ac861fe2729cfd9d
|
|
| BLAKE2b-256 |
70dcde49875fc08f08726db0d05db3343e7e6ed83173e3bd68b09393b1ca5efa
|