feat(checker): a histogram row printing one unit in both mic columns is the mixed-units case

The ~20 histograms with one mic interval off were Blastware printing
the same number in both mic columns of a row: I145HKWT.DY0H row 672
reads 95.92 under psi(L) and dB(L) (count 5: dB), S353K894.OE0H rows
106 and 608 read 0.000 under both (count 2: psi).  SFM's count agrees
with the neighbouring rows and with the other column.  mic-units-mixed
now covers the interval mic columns too; a column names its own unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-11-09 14:45:41 -05:00
1 parent 0b6150adb5
commit 6818e3023e
6 files changed
+4779 -3

No files matched your search

+9
View File
@@ -544,3 +544,12 @@ def test_the_mixed_units_carveout_needs_every_cell_in_one_unit_or_the_other():
ref.sample_rows[0][i] = "50.00" # neither SFM's dB nor its psi
res = {r.field: r for r in compare(sfm_side(path.read_bytes()), ref, CARVEOUTS)}
assert res["samples.MicL"].verdict == "mismatch"
@pytest.mark.parametrize("path,column", [
(_UL / "I145HKWT.DY0H", "MicL Peak psi(L)"), # row 672: 95.92 in both mic columns (count 5: dB)
(_UL / "S353K894.OE0H", "MicL Peak dB(L)"), # rows 106, 608: 0.000 in both (count 2: psi)
])
def test_an_interval_printing_one_unit_in_both_mic_columns_is_accepted(path, column):
r = _res(path)[f"intervals.{column}"]
assert (r.verdict, r.carveout) == ("accepted", "mic-units-mixed"), r