For the confirmed-label learning and discovery pipeline, see the learning pipeline guide. It includes a blind TLS search, a light-curve CNN, a feature baseline, separate training/validation/test stars, inference on unmatched signals, and injection recovery through the frozen pipeline. The executed starter report includes both model comparisons and injection diagnostics. The scaling experiment guide covers nested training datasets, CNN sizes, and CPU versus Apple Metal benchmarks. The controlled experiment guide compares current, richer-input, and Abdullah's model on identical clean labels, then scales the selected neural family.
| Path | Contents |
|---|---|
AGENTS.md |
Owners, how to run each pipeline, labels and evaluation rules (start here) |
tess_hunt/, scripts/, config/ |
Mika's pipeline: benchmark, learning, scaling and comparison experiments |
tls_masked_search/ |
Abdullah's pipeline: masked TLS search, labeled dataset, trees, shape model, candidate ranking (README) |
notebooks/ |
01 starter EDA, 02 TOI-880 walkthrough, 03 tls_masked_search walkthrough (search, labels, measurements, models, pixel images, ranking; chaptered) |
docs/ |
Guides for Mika's learning, scaling and controlled experiments |
data/benchmark/, data/catalogs/, data/dataset/ |
Committed target lists and catalog snapshots |
data/starter/ |
Pi Mensae download manifest and archive search snapshot |
data/raw/ |
All downloads (git-ignored; re-downloaded automatically) |
reports/ |
eda/ (starter EDA), benchmark/, walkthrough/, learning-starter/, tess-controlled/, tess-survey/ |
tests/ |
python -m unittest discover -s tests |
Real TESS observations for an initial exploratory data analysis. The starter target is Pi Mensae (TIC 261136679), a known planet host used in NASA's hands-on tutorial. The downloader requests SPOC, 120-second cadence, sectors 1, 4, and 8 from the public MAST archive. No account or API key is required.
These are extracted light curves, not detector images. Original FITS files include aperture flux (SAP_FLUX), pipeline-corrected flux (PDCSAP_FLUX), uncertainties, background, centroids, and quality flags. All original rows are retained in those files.
For Abdullah's alternative TLS search and classifier, open the tls_masked_search walkthrough,
an executed, chaptered notebook in plain language: the data, TOI-880's cleaning and two-signal search, the
100-star benchmark, how NASA's verdicts become labels, the 12 measurements and 6 snapshots, the tree and
shape models and how they are graded, pixel images, "nothing here" stars, the unsure flag and the wrong-star fix.
For a worked example, open the TOI-880 notebook walkthrough. It reconstructs each preprocessing transformation from the original FITS data, shows BLS/TLS intermediate results, inspects the first signal's warning flags, masks its events, finds a weaker second signal, and only then compares the periods with the catalog. All intermediate tables and figures are included after execution. A read-only export is in reports/walkthrough/toi880.html.
source .venv/bin/activate
jupyter lab notebooks/02_toi880_pipeline_walkthrough.ipynbThe project also includes a complete benchmark using 100 distinct cataloged planet hosts: 60 with known transiting planets and 40 whose confirmed planets have no cataloged transits. The latter are comparison stars, not proven transit-free stars.
Open the benchmark report, method and measured results, or the star summary. Each report row links to diagnostic plots and full results with detected periods, event times/depths, significance estimates, warning flags, catalog comparisons and provenance.
The transiting group includes 20 hosts each with a largest short-period planet of ≤3, 3–8, and >8 Earth radii. Targets have TESS magnitude 4–11.5 and known stellar mass/radius. Selection is deterministic from saved NASA Exoplanet Archive and MAST snapshots. It selects each star's latest available public 120-second SPOC sector. The groups differ in brightness; this is a learning benchmark, not a population-completeness measurement.
Both Astropy BLS and TLS 2.0 search independently over 0.5–12 days, shortened to half the usable baseline when necessary. They receive stellar mass/radius priors but no catalog planet periods, epochs, planet sizes or labels. Up to two search iterations are performed, masking only a signal discovered by the algorithms. Catalog comparisons happen afterward.
Preprocessing retains observing gaps, filters quality flags, splits at gaps longer than 0.5 days, trims 0.1 days at segment edges, removes slow trends using a one-day median, clips only large upward excursions, and makes ten-minute weighted bins. It scales formal errors to the measured point-to-point scatter when necessary. Longer trends, short transits and gaps can still limit sensitivity.
The common signal checks include observed repeat events, duration-block correlated-noise SNR, agreement in period and phase, central-half odd/even depths, secondary eclipses, and centroid shifts with a correlated-noise correction. The fixed thresholds in config/benchmark.json are heuristic screening rules, not calibrated false-alarm probabilities. Conclusions are supported transit-like signal, signal requiring review, or no significant signal in the search range. Data/search errors are reported separately. No result automatically confirms or rules out a planet.
Run or resume from the project folder:
.venv/bin/python scripts/run_benchmark.py allStages can be run separately:
.venv/bin/python scripts/run_benchmark.py select
.venv/bin/python scripts/run_benchmark.py download
.venv/bin/python scripts/run_benchmark.py search --workers 2
.venv/bin/python scripts/run_benchmark.py reportThe default uses four download workers and two search workers with one TLS thread each. Successful per-star searches are reused only when the input file hash, code, configuration and numerical-library versions match. --force reruns searches; --limit 3 performs a small smoke run. --refresh-catalog on select or all fetches fresh snapshots and can change the sample. Keep the existing snapshots to reproduce this run.
Benchmark inputs live in data/benchmark/targets.csv, known_planets.csv, selection.json, and download_manifest.json. Original files are in data/raw/benchmark/. Generated photometry is in data/processed/benchmark/. Small result JSONs and summary tables can be committed; raw files, derived photometry, plot images and numerical spectra are Git-ignored and reproducible.
Run the scientific validation checks:
.venv/bin/python -m unittest discover -s tests -vThese tests check an injected transit, a seeded white-noise example, transit preservation through detrending, gap handling, unobserved-event counts, alternating eclipse depths, and period harmonics. They are not a large injection-recovery sensitivity calibration.
The local .venv is already installed. From this project folder:
source .venv/bin/activate
jupyter lab notebooks/01_tess_eda.ipynbThe notebook runs offline once the data have been downloaded. Use Run → Run All Cells. It covers schema and units, missing values, SAP versus PDCSAP, quality filtering, cadence/gaps, noise summaries, and a zoomed light curve. It also saves plots and CSVs. Outputs are already included after the initial execution.
| Location | Contents |
|---|---|
data/raw/*.fits |
Untouched light curves downloaded from MAST |
data/starter/manifest_tic261136679.json |
Source URIs, target/sector metadata, sizes, and SHA-256 hashes |
data/starter/search_tic261136679.ecsv |
Archive search result with product metadata |
data/processed/pi_mensae_all_cadences.csv |
Selected FITS columns, every original row, normalization, and filter indicators |
data/processed/pi_mensae_clean.csv |
Minimally filtered, per-sector normalized data |
notebooks/01_tess_eda.ipynb |
Editable, executed EDA notebook |
reports/eda/eda_notes.md |
Measured dataset summary |
reports/eda/eda_summary.csv |
Per-sector sample counts, gaps, and scatter statistics |
reports/eda/*.png |
EDA figures |
CSV column names are lowercase. Flux units are electrons/second; columns ending in _norm are dimensionless. time is BTJD (BJD − 2,457,000), in TDB days. quality is an integer bitmask. keep records whether a row passes the initial filter. FITS files remain the authoritative original observations.
The initial filter uses Lightkurve's default TESS quality mask plus finite, positive PDCSAP flux and uncertainty. No detrending, outlier clipping, or gap interpolation is applied. Per-sector median normalization does not remove stellar variability or all instrumental trends.
.venv/bin/python scripts/download_tess.pyExisting files are checked and reused. New files are downloaded to temporary paths, checked for target, sector, cadence, FITS structure, and embedded checksums, and then moved into place. The manifest records SHA-256 hashes for subsequent local integrity checks, plus the status of embedded FITS checksums (0 = mismatch, 1 = valid, 2 = absent). The checker verifies the actual header/data bytes using the FITS one's-complement checksum, including when the optional DATASUM keyword is absent. A checksum mismatch stops the download. All three starter files passed these checks; a separate repeat download of sector 1 was byte-identical.
If the archive search is slow, reuse the saved product list:
.venv/bin/python scripts/download_tess.py --use-saved-searchThat still downloads from MAST, but skips the search request. It can only select products present in the saved snapshot.
To request a different sample:
.venv/bin/python scripts/download_tess.py --tic 261136679 --sectors 1 4 8 11The notebook uses the Pi Mensae manifest; adjust it explicitly if you choose another TIC. More sectors increase disk usage and change the notebook output.
To recreate the environment:
uv venv --python 3.12 .venv
uv pip install -r requirements.txtrequirements.txt pins the resolved versions; requirements.in lists the direct dependencies. Downloads and derived CSVs are excluded from Git through .gitignore.
Inspect sector 1 first, compare it with the other sectors, and identify which features are associated with flagged cadences or gaps. Then detrend sectors separately and run a blind Box Least Squares search. The notebook does not supply a planet period or perform the search, so that remains your next investigation.
Three sectors of one known planet host are a learning dataset, not an unbiased survey or an ML training set. Scatter estimates here are not transit detection significances or CDPP. Expand to additional stars after establishing a baseline and use star-level evaluation splits for ML.
If the archive is temporarily unavailable, retry the downloader later. For manual access, open MAST Portal, search TIC 261136679, filter to TESS/SPOC timeseries at 120 seconds, select sectors 1, 4, and 8, and download the _lc.fits products. Keep the archive product identifiers with the files.