Release v0.34.0 — Series-4 parity, and most of Blastware's report from the event file alone #59
No files matched your search
@@ -346,7 +346,7 @@ async function loadEventList() {
|
||||
// ── Device bar ─────────────────────────────────────────────────────────────────
|
||||
function populateDeviceBar() {
|
||||
qs('di-serial').textContent = unitInfo.serial || '—';
|
||||
qs('di-fw').textContent = unitInfo.firmware_version || unitInfo.firmware || '—';
|
||||
qs('di-fw').textContent = firmwareLabel(unitInfo);
|
||||
const cc = unitInfo.compliance_config || {};
|
||||
qs('di-sr').textContent = cc.sample_rate ? `${cc.sample_rate} sps` : '—';
|
||||
qs('di-rt').textContent = cc.record_time != null ? `${cc.record_time.toFixed(1)} s` : '—';
|
||||
|
||||
@@ -345,14 +345,15 @@ class WaveformStore:
|
||||
exc,
|
||||
)
|
||||
|
||||
# If we have a report, overlay its device-authoritative fields
|
||||
# (peaks, project, sample_rate, record_time) onto the Event
|
||||
# BEFORE handing it to db.insert_events(). Without this overlay
|
||||
# the DB row gets `peak_values` from _peaks_from_samples(), which
|
||||
# runs the still-undecoded waveform codec on the BW body and
|
||||
# produces ±10 in/s saturation values on every channel for every
|
||||
# event. The sidecar JSON had the correct values via
|
||||
# event_to_sidecar_dict(bw_report=...) but the DB columns didn't.
|
||||
# If we have a report, overlay its fields (peaks, project,
|
||||
# sample_rate, record_time) onto the Event BEFORE handing it to
|
||||
# db.insert_events(). The file decode reads these itself now (the
|
||||
# decode checker compares it with Blastware's XML reports, DL2's
|
||||
# 70,042 events); the overlay stays because production keeps a
|
||||
# paired Blastware report as the record until the file-only decode
|
||||
# has no blanks. The sidecar's `bw_report` block keeps the report's
|
||||
# own values either way. (The old reason -- an undecoded codec
|
||||
# giving ±10 in/s -- has not held since the 2026-08 codec fixes.)
|
||||
if bw_report is not None:
|
||||
try:
|
||||
event_file_io.apply_report_to_event(ev, bw_report)
|
||||
|
||||
Reference in new issue
Block a user