calamari.quality.QualityReport#
- class calamari.quality.QualityReport(path, threshold, rows)#
Bases:
objectWhat a file says about the trustworthiness of each of its points.
Returned by
Measurement.quality(); seecalamari.qualityfor what is a gate and what is evidence, and why.- path#
The file the report describes.
- Type:
pathlib.PathorNone
- rows#
One row per scored point, indexed by the point’s row label in
Measurement.data(som.data.loc[report.flagged.index]is the raw rows). Columns areQUALITY_COLUMNS:family,frequency_hzThe series the point was scored in: a measurement family (
'VSM','DC','AC') and, for AC, one frequency. Each series is scored on its own, in file order. Scored together, a combined run’s interleaved rows would put the other family’s (or frequency’s) values among every point’s neighbours, and their offset would set the neighbours’ spread – hiding real glitches in either.signal,value,errorThe accessor scored (
'moment_emu'or'chi_real'), its value and paired standard error at this point.continuity_score,flaggedThe gate:
continuity_scores(), and whether it exceedsthreshold.err_ratioerrorover the median of its neighbours’ errors. Large on a glitch – and on the first point of every field scan.T_spread_K,T_spread_ratio,H_spread_OeMax minus min temperature and field over the point (the MPMS3
Min./Max.columns), and the temperature spread relative to the neighbours’. In settled measurements the temperature spread is a stability figure, not ramp information.fit_qualityThe instrument’s own fit quality (0-1) for the moment column in use:
DC Free Fitfor the free-centre moment,DC Fixed Fitfor the fixed-centre one. Followswith_moment(). NaN for VSM and AC, which have none.status_departureStatus columns whose value at this point differs from the file’s usual value for this family, as
"<column>=<value> (usual <value>)"joined by"; ", or"". Never read against a fixed “0 = OK”: on real files1is the normal value of several codes.range_changeWhether the SQUID range differs from the previous point of the series.
- Type:
- summary()#
Counts for a catalog row: how much of this file deserves a look.
Keys:
n_scored,n_flagged,max_continuity_score,n_status_departures,n_range_changes,fit_quality_min,T_spread_max_K. A value the file cannot supply (no fit-quality column, noMin./Max.columns) is None, never 0 – “none recorded” and “none found” are different answers.- Return type: