feat(decode): over range from the unit's own peaks -- Blastware's OORANGE
A channel is over range when the unit's own peak (its summary's min / max) passes 2,000: 32,000 counts, full scale, on either geophone range; the mic in counts. Blastware prints OORANGE for that channel's peak, for the vector sum when any geophone is over, and its "Out of Range" line when the mic is (DL2, 2026-11-09): numeric up to 1,991 / 1,933, OORANGE from 2,001; the vector sum is OORANGE on all 43 events with a geophone over and on none of the 38 whose vector sum alone passes 10 in/s -- the open "vector sum alone" carve-out was never needed. PeakValues gains tran/vert/long/mic/pvs_over_range. The checker matches OORANGE by the flag, and calls a flag against a printed number a mismatch. Clipped events that the saturation carve-out used to accept now match outright; the carve-out stays as the fallback for a file without the unit's summary, and its guards are tested that way. 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
e542e61b68
commit
af8dde5114
12 files changed
+1097
-19
No files matched your search
@@ -28,8 +28,9 @@ def test_find_pairs_dedupes_and_pairs(tmp_path):
|
||||
def test_check_event_rows_and_attrs():
|
||||
out = run.check_event("M007HVWF.K30W", str(FIX / "M007HVWF.K30W"), str(FIX / "M007HVWF_K30W_XML.XML"))
|
||||
assert out["attrs"]["range"] == "1.250" and out["attrs"]["model"] == "MiniMate Plus"
|
||||
# clipped at its own 1.250 ceiling: accepted under the saturation carve-out
|
||||
assert ["TranPPV", "accepted"] in [r[:2] for r in out["results"]]
|
||||
# clipped at its own 1.250 ceiling: Blastware's OORANGE, matched by the unit's
|
||||
# own peak since 2026-11-09 (it was accepted under the saturation carve-out)
|
||||
assert ["TranPPV", "match"] in [r[:2] for r in out["results"]]
|
||||
|
||||
|
||||
def test_bad_input_is_one_error_row(tmp_path):
|
||||
@@ -129,7 +130,7 @@ def test_compare_to_marks_the_summary(tmp_path):
|
||||
def test_file_prints_one_event(tmp_path, capsys):
|
||||
assert run.main([str(FIX), str(FIX), "--file", "M007HVWF.K30W"]) == 0
|
||||
out = capsys.readouterr().out
|
||||
assert any("TranPPV" in line and "accepted" in line for line in out.splitlines())
|
||||
assert any("TranPPV" in line and "OORANGE" in line for line in out.splitlines())
|
||||
|
||||
|
||||
# ── Final review fixes ──────────────────────────────────────────────────────
|
||||
|
||||
Reference in new issue
Block a user