jacscanomaly

jacscanomaly is a Python package for scan-based anomaly detection in time-series light curves, with microlensing anomaly searches as the primary use case.

The package is built for the common situation where a smooth baseline model fits most of a light curve, but localized deviations may contain the signal of interest. In microlensing applications the baseline is usually a single-lens model and the deviations are candidate planetary anomalies.

What it does

jacscanomaly provides:

  • single-lens fitting utilities for PSPL, FSPL, and parallax variants,

  • a residual scan over anomaly center time and effective duration,

  • non-overlapping candidate extraction,

  • candidate support diagnostics such as n_eff and peak_frac,

  • plotting and summary helpers for scripts, CLIs, and notebooks,

  • low-memory C++ backends for large PSPL survey scans.

The high-level entry point is jacscanomaly.Finder. A typical workflow is:

  1. fit a single-lens baseline model to a light curve,

  2. scan the residuals over local anomaly templates,

  3. extract non-overlapping anomaly candidates,

  4. inspect candidate quality diagnostics such as score and n_eff.

Start here

If you are using the package for the first time:

Project indices