summarize_run#

lsst.analysis.ap.summarize_run(query, bad_flag_list=None)#

Return a per-visit summary DataFrame for an APDB run.

Useful as a quick health check after a processing run: one row per visit with source counts, dipole rate, reliability statistics, and the fraction of sources that fall in the bad-flag list.

Parameters#

querylsst.analysis.ap.apdb.DbQuery

APDB query interface (sqlite, postgres, or cassandra).

bad_flag_listlist [str], optional

Flag column names to count as “bad”. If omitted, the query’s currently-configured exclusion list is used. The caller’s exclusion list is restored before returning.

Returns#

summarypandas.DataFrame

Indexed by visit. Columns: n_sources, n_unflagged, bad_flag_fraction, median_reliability (if column present), dipole_fraction (if column present), median_psf_chi2_per_dof (if columns present).