fix(checker): final-review fixes -- regressions, baselines, the PVS carve-out, the headline
- A matching event that now fails outright is a regression: compare_runs walks the previous run's matching rows, so a check that collapses to one error row no longer hides every field it used to match. Counts moved are taken over the events both runs checked. - The default baseline is the newest completed run (run.json written) of the same scope; a 2,000-event sample is no baseline for a full run. changes.md names the previous run's scope. - The PVS saturation carve-out now needs Blastware's OORANGE, a channel Blastware clamped at SFM's ceiling, and SFM's sum within three channels at the ceiling -- an unclipped Sensitive-range channel read 8x can no longer let an 8x sum through. - 'Fields fully matching' needs a match: an always-empty element proves nothing. Events without a report are a line of their own. - CLAUDE.md: histogram PVS described correctly; 35 sub-minute histograms plus 2 one-minute no-mic ones, not '~37 sub-minute'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
1 parent
e9d352ad99
commit
c0d837c14f
6 files changed
+162
-31
No files matched your search
@@ -54,11 +54,17 @@ def _saturation(sfm: SfmSide, ref: XmlReport, res: FieldResult) -> bool:
|
||||
v = sfm.values.get(res.field)
|
||||
return v is not None and _clamped(res.bw or "", r) and _at_ceiling(float(v), r)
|
||||
if res.field == "PeakVectorSum":
|
||||
# A vector sum can exceed the range (11.55 on T438HGTZ.B30W); it is the
|
||||
# clipped channel under it that must sit at the ceiling.
|
||||
return (_clamped(res.bw or "", r) and
|
||||
any(sfm.values.get(f) is not None and _at_ceiling(float(sfm.values[f]), r)
|
||||
for f in ("TranPPV", "VertPPV", "LongPPV")))
|
||||
# A vector sum can exceed the range without any clipping, so only
|
||||
# Blastware's OORANGE counts. SFM's sum is bounded by three channels at
|
||||
# the ceiling (11.55 on T438HGTZ.B30W), and a channel Blastware itself
|
||||
# clamped must be the one SFM has at the ceiling -- an unclipped channel
|
||||
# read 8x high on the Sensitive range does not qualify.
|
||||
pvs = sfm.values.get("PeakVectorSum")
|
||||
return ((res.bw or "").strip() == "OORANGE" and pvs is not None
|
||||
and r - _TOL <= float(pvs) <= 3 ** 0.5 * r * 1.01
|
||||
and any(_clamped(ref.scalars.get(f, ""), r) and sfm.values.get(f) is not None
|
||||
and _at_ceiling(float(sfm.values[f]), r)
|
||||
for f in ("TranPPV", "VertPPV", "LongPPV")))
|
||||
got = series_pairs(sfm, ref, res.field)
|
||||
if got is None or got[1]:
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user