fix: continue to debug and fix strt amd waveform weirdness

This commit is contained in:
2026-04-14 19:44:37 -04:00
parent c5a7914032
commit 8d0537389d
4 changed files with 25 additions and 13 deletions
+6 -3
View File
@@ -627,10 +627,13 @@ def _build_waveform_blob(e: Event) -> Optional[str]:
pv = e.peak_values
peak_values = None
if pv:
# Key names must match sfm/server.py _serialise_peak_values() so the
# waveform viewer (which reads tran_in_s / vert_in_s / long_in_s) works
# identically in both live-device mode and DB mode.
peak_values = {
"tran": pv.tran,
"vert": pv.vert,
"long": pv.long,
"tran_in_s": pv.tran,
"vert_in_s": pv.vert,
"long_in_s": pv.long,
"micl_psi": pv.micl,
"peak_vector_sum": pv.peak_vector_sum,
}