Skip to main content

LEO-Vetter: Automated Vetting for TESS Planet Candidates

Project description

🦁 LEO-Vetter: for Lazy Exoplanet Operations

LEO-Vetter (the Lazy-Exoplanet-Operations Vetter) is a tool for automated vetting of transit signals found in light curve data. Inspired by the Kepler Robovetter, LEO-Vetter computes vetting metrics and then checks those metrics against a series of pass-fail thresholds. If a signal passes all checks, it is considered a planet candidate (PC). If a signal fails at least one test, it may be either an astrophysical false positive (FP; e.g. eclipsing binary, nearby eclipsing signal) or false alarm (FA; e.g. systematic, stellar variability). LEO-Vetter also produces vetting reports for quick manual inspection of the signal.

Flux-level vetting can work on light curves from any source, including (but not limited to) Kepler, K2, and TESS. Pixel-level vetting has been implemented for TESS usage only.

Usage

Check out the tutorials for full usage, but at its simplest it will look something like the following:

from leo_vetter.main import TCELightCurve
from leo_vetter.pixel import pixel_vetting
from leo_vetter.thresholds import check_thresholds

tlc = TCELightCurve(ID, time, raw, flux, flux_err, period, epoch, duration)

# Run flux-level vetting
# "star" is a dict containing stellar properties like mass, radius, etc.
tlc.compute_flux_metrics(star)

# Run pixel-level vetting
# "sectors" is a list of desired sectors for making difference images
tdi, good_sectors, good_pixel_data, good_centroids = pixel_vetting(tlc, star, sectors)

# Check metrics against pass-fail thresholds
FA = check_thresholds(tlc.metrics, "FA")
FP = check_thresholds(tlc.metrics, "FP")

Important note: The thresholds that determine whether a signal passes or fails work pretty well for TESS-observed FGKM dwarf stars, but no single set of thresholds will work for all use-cases. You can try changing the thresholds (or even adding/removing tests) to optimize this tool for your own purposes (see Tutorial 4).

Installation

LEO-Vetter is pip-installable:

pip install leo-vetter

If you also want to run pixel-level vetting (recommended), you will need to install the transit-diffImage package available here:

git clone https://github.com/stevepur/transit-diffImage.git
cd transit-diffImage
pip install .

Citing LEO-Vetter

Please cite our paper if you find this package useful 😊

Kunimoto, M., Bryson, S., Jaffee, D., et al. (2025) The Astronomical Journal, 170, 280

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

leo_vetter-1.0.0.tar.gz (169.8 kB view details)

Uploaded Source

Built Distribution

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

leo_vetter-1.0.0-py3-none-any.whl (170.2 kB view details)

Uploaded Python 3

File details

Details for the file leo_vetter-1.0.0.tar.gz.

File metadata

  • Download URL: leo_vetter-1.0.0.tar.gz
  • Upload date:
  • Size: 169.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for leo_vetter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 abc2f5c5ece6eff409b2df89fe2e9a79b9fffa69fe48e6693493af0b3fff0a98
MD5 ecdc5671222aedb42eb39ff1be77de35
BLAKE2b-256 19124bd46c5f3194e69c8d7857a207d916c5fa164f87bea7aa39f243ac93fd7e

See more details on using hashes here.

File details

Details for the file leo_vetter-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: leo_vetter-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 170.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for leo_vetter-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bd343b7f77f63151a2efb4bd8b13d8bf0d6c16bc6f007fbde8fc8126a8e2fd5
MD5 b3b53facc4603b7ce4cfe13135d19d27
BLAKE2b-256 d705c81d37efc5b4decd99e44658567695e4bc8597bb9aa712637944040c327b

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