Release v0.35.0 — 80 of 88 report fields from the file, and monitor logs (.MLG) #60
No files matched your search
@@ -23,7 +23,7 @@ from minimateplus.bw_ascii_report import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
FIXTURES = Path(__file__).parent.parent / "decode-re" / "5-8-26"
|
FIXTURES = Path(__file__).parent / "fixtures" / "decode-re-5-8-26"
|
||||||
|
|
||||||
|
|
||||||
def _fixture(event_name: str) -> Path:
|
def _fixture(event_name: str) -> Path:
|
||||||
|
|||||||
@@ -410,8 +410,8 @@ def test_save_imported_bw_with_paired_report(tmp_path: Path):
|
|||||||
|
|
||||||
# Use one of the real BW ASCII exports as the paired report.
|
# Use one of the real BW ASCII exports as the paired report.
|
||||||
report_path = (
|
report_path = (
|
||||||
Path(__file__).parent.parent
|
Path(__file__).parent
|
||||||
/ "decode-re" / "5-8-26" / "event-c" / "M529LK44.AB0.TXT"
|
/ "fixtures" / "decode-re-5-8-26" / "event-c" / "M529LK44.AB0.TXT"
|
||||||
)
|
)
|
||||||
if not report_path.exists():
|
if not report_path.exists():
|
||||||
import pytest as _pt
|
import pytest as _pt
|
||||||
@@ -498,8 +498,9 @@ def test_save_imported_bw_without_report_works_unchanged(tmp_path: Path):
|
|||||||
sc = store.load_sidecar("BE11529", fname)
|
sc = store.load_sidecar("BE11529", fname)
|
||||||
assert sc is not None
|
assert sc is not None
|
||||||
assert "bw_report" not in sc # block is absent without a report
|
assert "bw_report" not in sc # block is absent without a report
|
||||||
# Synthetic event has zero samples → peaks all zero (was true before this change)
|
# Synthetic event has zero samples: the peaks stay unknown (None), never a
|
||||||
assert sc["peak_values"]["transverse"] == 0.0
|
# fabricated 0.0 that a backfill could write over real peaks (fa9d3cd).
|
||||||
|
assert sc["peak_values"]["transverse"] is None
|
||||||
|
|
||||||
|
|
||||||
def test_save_imported_bw_round_trip(tmp_path: Path):
|
def test_save_imported_bw_round_trip(tmp_path: Path):
|
||||||
|
|||||||
Reference in new issue
Block a user