Skip to main content

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").

Python Version License: GPL v3

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 rigorously with Python 3.9)

From PyPI (Recommended)

The easiest way to install mono-cbp is from PyPI:

pip install mono-cbp

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 python=3.9
conda activate mono-cbp
pip install mono-cbp

This installs the package and creates the mono-cbp command-line tool.

From Source

For development or to use the latest unreleased features:

git clone https://github.com/bdrdavies/mono-cbp.git
cd mono-cbp
pip install -e .

This installs the package in editable mode.

Verify Installation

To check that the installation has been successful:

python -c "import mono_cbp; print(mono_cbp.__version__)"
mono-cbp --help

Dependencies

All dependencies are automatically installed when you install mono-cbp.

See pyproject.toml or requirements.txt for the complete dependency list and version constraints.

Troubleshooting Installation

If you encounter issues:

  • Python version: The package has been tested most thoroughly with Python 3.9.
  • Dependency conflicts: If you have conflicts with existing packages, create a fresh environment
  • Import errors: If you see import errors, ensure all dependencies installed correctly by checking pip show mono-cbp and comparing against pyproject.toml

Examples & Tutorials

There are a series of Jupyter notebooks in the examples/ directory to demonstrate how to use the package in your own code:

  1. 00_download_light_curves.ipynb - Download TESS light curves in the mono-cbp format using lightkurve
  2. 01_complete_pipeline.ipynb - End-to-end workflow on sample data
  3. 02_eclipse_masking.ipynb - Eclipse masking demo
  4. 03_transit_finding.ipynb - TCE detection example
  5. 04_model_comparison.ipynb - Bayesian model comparison example
  6. 05_injection_retrieval.ipynb - Completeness testing

Documentation

Documentation is available in the docs/ directory:

Support & Contact

For questions, issues, or feature requests:

Metadata

Release files for mono-cbp 0.1.9

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

Source distribution (sdist)

Source distribution for mono-cbp 0.1.9
File Size Uploaded Provenance Actions
mono_cbp-0.1.9.tar.gz 68.5 kB Without provenance Details for mono_cbp-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mono-cbp 0.1.9
File Interpreter ABI Platform Actions
mono_cbp-0.1.9-py3-none-any.whl Python 3 none any Details for mono_cbp-0.1.9-py3-none-any.whl

Total release size: 142.6 kB

Release files / mono_cbp-0.1.9.tar.gz

Download URL mono_cbp-0.1.9.tar.gz
Size 68.5 kB
Tags Source
SHA-256 checksum
How to use checksums
16b9b9aab06ba43c63157ecea25fb2d195d32909f6f10adf64d9dc4908e30cec
BLAKE2b-256 checksum
How to use checksums
963ee8ddcd423ea3d75ec7bc800966b8cdbb4aa2d43817f577ca4693c4131db8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / mono_cbp-0.1.9-py3-none-any.whl

Download URL mono_cbp-0.1.9-py3-none-any.whl
Size 74.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e36045efd0394b870b2f29812216d9e5846d7c7df19510c037a0100329773b8
BLAKE2b-256 checksum
How to use checksums
9a8bba35da3c887d4b74122b7b497d15dc7cb611214723252b4c75363c9f8915
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for mono-cbp 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files No provenance

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