monohunter
Find single long-period mono-transits in public TESS light curves — the single-transit events that periodic pipelines (SPOC/QLP, which fold on a period) structurally under-find. Built so many people can each search under-covered targets and combine machine-readable finds.
Why
Automated TESS pipelines run periodic searches (BLS/TLS) over every target. A single transit has no period to fold on, so those searches miss it. Real long-period planets have been co-discovered exactly here (e.g. TOI-2180 b, found from one ~24-hour transit). monohunter targets that gap.
Install
pip install monohunter
Python 3.10+. Pulls in lightkurve, wotan, astroquery, scipy, matplotlib.
Usage
Search one target by its TESS Input Catalog (TIC) id:
monohunter run --tic 298663873
This searches every available sector, and for each candidate writes a JSON
find-record + a diagnostic PNG into candidates/. Example (TOI-2180, the
canonical mono-transit — restrict to its sector to keep it quick):
monohunter run --tic 298663873 --sectors 19
# S19: depth=4.09ppt dur=24h SNR=165.3 [known TOI-2180.01] -> candidates/tic298663873_s19.json
Options
| Flag | Default | Meaning |
|---|---|---|
--tic <id> |
required | TESS Input Catalog id to search |
--sectors <n...> |
all | restrict to specific sector numbers (faster) |
--window <days> |
3.0 |
detrend window; must be several × the transit duration or flattening eats the dip |
--outdir <path> |
candidates |
where JSON + PNG are written |
--no-plot |
off | skip PNG generation |
Reading a result
Each candidate is one JSON file:
{
"schema_version": 2,
"tic": 298663873,
"sector": 19,
"cadence_s": 120,
"event_time_btjd": 1830.77,
"depth_ppt": 4.09,
"duration_hr": 23.8,
"ingress_hr": 2.29,
"snr": 165.3,
"detrend_method": "biweight",
"detrend_window_d": 3.0,
"tool_version": "0.1.0",
"known_toi_match": true,
"known_toi_id": "TOI-2180.01",
"plot_path": "candidates/tic298663873_s19.png"
}
| Field | Meaning |
|---|---|
event_time_btjd |
dip center, TESS Barycentric Julian Date |
depth_ppt |
transit depth (parts per thousand), trapezoid flat-bottom |
duration_hr |
total transit duration (first-to-last contact) |
ingress_hr |
ingress/egress time from the trapezoid fit (null if uncharacterized) |
snr |
detection signal-to-noise; the tool reports candidates at SNR ≥ 7 |
known_toi_match / known_toi_id |
whether the target is an existing TESS Object of Interest |
Always look at the PNG. SNR alone lies — confirm the marked dip is a real,
centered transit, not a sector-edge ramp, a data gap, or a single bad cadence.
Re-run with a different --window; a real dip survives, an artifact moves or
vanishes. A known_toi_match: false is the interesting case (potentially
unsearched); true still validates the tool.
A candidate is not a discovery. It means a human thinks the dip is real. Confirming a planet needs follow-up (radial velocity, more transits) beyond this tool.
How it works
fetch search TESS, dedup sectors (prefer 2-min), quality-mask (hard),
stream one sector at a time
|
detrend wotan biweight; window must be >> transit or the dip is flattened away
|
detect matched-filter box scan (non-periodic — finds a SINGLE transit),
edge-guarded against sector-boundary ramps
|
characterize trapezoid fit -> true depth, duration, ingress
|
cross-match flag known TESS Objects of Interest (NASA Exoplanet Archive)
|
FindRecord versioned + validated JSON -> candidates/
The Detector interface is a seam: v1 is the box scan; a GP-based detector
(nuance) can plug in later without touching the pipeline. The versioned
FindRecord JSON is the contract a future aggregation server consumes.
Reuse, not reinvention
Stands on lightkurve, wotan, scipy, and astroquery. monohunter is orchestration + the single-transit gap + result aggregation, not a new detection engine.
Fresh-data watcher (be first)
Institutional pipelines take weeks-to-months to vet a new TESS sector. Run the watcher on a schedule and you process a sector within hours of its release — and a single transit you flag comes with a next-transit window (see below) an observer can still act on.
monohunter watch --sector 90 --max 100 --out watch_out --state watch_state.json
Each run scans the next --max un-processed targets of the sector and prints any
not-yet-known candidates. It's resumable: state tracks which TICs are done,
so scheduled runs continue where the last stopped and a crash loses nothing.
Schedule it to keep chewing through the sector:
# Linux/macOS cron — every 2 hours
0 */2 * * * cd /path/to/monohunter && monohunter watch --sector 90 --max 200
# Windows: Task Scheduler → run the same command on a trigger
Point --sector at the newest released sector. Candidates land in watch_out/;
vet each with monohunter run --tic <id> --sectors <N> to get its PNG, then
submit the good ones (see Contributing).
Next-transit ephemeris
When a candidate's target has a catalog stellar density, monohunter estimates the period from the transit duration and predicts when the next transit could occur:
S19: depth=4.09ppt dur=24h SNR=39.4 [known TOI-2180.01]
P~856d (396-1946d, P_min 15d), next transit ~2027-08-07
Single-transit periods are inherently uncertain (a range, not a precise value) — the output is a targeting window for follow-up, not a confirmed ephemeris. If the stellar density is missing or too uncertain, monohunter reports the period as unconstrained rather than guessing.
Community leaderboard (swarm)
Submitted candidates are aggregated into one ranked list — deduped by
(tic, sector), ranked by novelty (not a known TOI), cross-submitter agreement,
and SNR. Live at https://rinkia.github.io/monohunter/, rebuilt automatically
on every merged contribution.
Build it yourself from a contributions/ tree:
monohunter aggregate --contributions contributions --out _site
# writes _site/index.html + _site/leaderboard.json
This is phase 1 of the swarm: pure aggregation over the PR flow, no backend. A live coordination server (handing out targets so no two people search the same star) is a later increment, worth building only once there's real contention.
One-time to publish: repo Settings → Pages → Source = "GitHub Actions"
(the pages.yml workflow does the rest).
Contributing
Found a candidate, or want to improve the detector? See
CONTRIBUTING.md. Candidate submissions go to
contributions/<username>/ via the
candidate PR template.
Development
git clone https://github.com/Rinkia/monohunter
cd monohunter
python -m venv .venv && . .venv/Scripts/activate # Windows
pip install -e ".[dev]"
pytest -q # fast, offline unit tests
pytest --runslow # + live real-data regression (hits MAST)
Releasing to PyPI
CI (.github/workflows/ci.yml) runs the tests on every push. Publishing
(.github/workflows/release.yml) fires on a version tag and uses Trusted
Publishing — no token in GitHub.
One-time PyPI setup (before the first release):
- On PyPI: Account → Publishing → Add a pending publisher:
- PyPI project name:
monohunter - Owner:
Rinkia· Repository:monohunter - Workflow:
release.yml· Environment: leave blank (Any)
- PyPI project name:
- (Optional) For a manual approval gate, create a GitHub Environment, set it
as the pending-publisher Environment, and add
environment: <name>back to thepublishjob inrelease.yml.
Then release:
# bump version in pyproject.toml first
git tag v0.1.0
git push --tags
License
MIT.
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 monohunter-0.2.0.tar.gz.
File metadata
- Download URL: monohunter-0.2.0.tar.gz
- Upload date:
- Size: 65.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44e01b5ba854ebe4ce5423e1eec9e606cf0bb477399b3a9cf29cd10297a7d801
|
|
| MD5 |
bdbf585af60e91deb0ca7126f5c7c48f
|
|
| BLAKE2b-256 |
a3f4155c03c563d60e8f472ad45f430573f6834deef092babead6f26d63f49a2
|
Provenance
The following attestation bundles were made for monohunter-0.2.0.tar.gz:
Publisher:
release.yml on Rinkia/monohunter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
monohunter-0.2.0.tar.gz -
Subject digest:
44e01b5ba854ebe4ce5423e1eec9e606cf0bb477399b3a9cf29cd10297a7d801 - Sigstore transparency entry: 2379821869
- Sigstore integration time:
-
Permalink:
Rinkia/monohunter@809324b712db3975559f5c96de1ab1c622d94481 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Rinkia
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@809324b712db3975559f5c96de1ab1c622d94481 -
Trigger Event:
push
-
Statement type:
File details
Details for the file monohunter-0.2.0-py3-none-any.whl.
File metadata
- Download URL: monohunter-0.2.0-py3-none-any.whl
- Upload date:
- Size: 54.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06ebc2ce8c90191f32854029cea95a300a3e6260aabdcaa7146045a348dd3211
|
|
| MD5 |
b95f4685231652f2efd2fb2bc9a464a1
|
|
| BLAKE2b-256 |
6c89acb17266229fd3f862fb2d9ff4a23dba7fc4998c8de9045e97390f6fa599
|
Provenance
The following attestation bundles were made for monohunter-0.2.0-py3-none-any.whl:
Publisher:
release.yml on Rinkia/monohunter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
monohunter-0.2.0-py3-none-any.whl -
Subject digest:
06ebc2ce8c90191f32854029cea95a300a3e6260aabdcaa7146045a348dd3211 - Sigstore transparency entry: 2379822683
- Sigstore integration time:
-
Permalink:
Rinkia/monohunter@809324b712db3975559f5c96de1ab1c622d94481 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Rinkia
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@809324b712db3975559f5c96de1ab1c622d94481 -
Trigger Event:
push
-
Statement type: