From 29c8e2b034d0e67f37382bf85ee2cb2248968f01 Mon Sep 17 00:00:00 2001 From: serversdown Date: Thu, 29 Oct 2026 17:30:45 -0400 Subject: [PATCH] =?UTF-8?q?docs(changelog):=20Unreleased=20=E2=80=94=20Bla?= =?UTF-8?q?stware=20file-only=20setup=20and=20notes=20(#44,=20#45),=20the?= =?UTF-8?q?=20XML=20checker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9 --- CHANGELOG.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a535c1..9a36a88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,48 @@ All notable changes to seismo-relay are documented here. ## Unreleased +### Fixed +- **A Blastware event imported without its ASCII report now carries its + setup and notes (#44, #45).** Until now such an event stored no sample + rate, a record time of "70 s" (the STRT record-type byte, 0x46), a + pre-trigger and sample count read from STRT bytes that are neither, and + blank project / client / operator / location (the reader stopped at the + NUL after each label). All of DL2's 2016–2024 events arrive this way. + - The recording-setup block is found by structure (`1c 08`, the setup + name, NUL), not by the name "Standard Recording Setup", which 37% of + DL2's files do not use. + - Sample rate, pre-trigger and record time come from that block; a + waveform's sample count is the decoded count. A histogram gets a + sample rate only: Blastware reports no record time or pre-trigger for + one. + - The setup name and the four notes are read by position, as the ASCII + parser does: their labels are operator-editable. + - Verified against Blastware's own `_XML.XML` reports for the 70,042 DL2 + events that have one (2016–2026): sample rate 70,042/70,042, record + time 6,524/6,524, pre-trigger 6,484/6,484, notes 70,042/70,042, sample + count 6,523/6,524 (one waveform the decoder ends 3 samples short — + separate). + - Events imported with an ASCII report are unchanged: the report still + overlays. Not yet read: the job number (2,997 archive events carry + one). The waveform-time estimate still finds the record time by the + name, pending a measurement. The Micromate half of #44/#45 (SFM's own + downloads, no report) stays with the parity branch. + - ⚠ **Codec change: bump `TOOL_VERSION` at release** and run + `backfill_sidecars.py` then `backfill_event_shape.py` on prod (~2 h on + the NAS) so stored report-less events pick the fields up. No schema + change, no migration. + +### Added +- **`scratch/verify_bw_fields_against_xml.py`** checks the fields SFM reads + from a Blastware file alone against the event's `_XML.XML` report — the + first piece of the decode checker. DL2's `Sent/` holds those reports, + every sample included, for 70,042 events back to 2016; its ASCII reports + only go back to 2025. +- **README roadmap:** a bulk event importer, parked. + ### Changed +- **`CLAUDE.md`:** the 14,338 ASCII-report pairs were said to reach "back + to 2018"; they are all 2025–26 events. Corrected in place. - **The SFM / SDM tier model in `CLAUDE.md` is marked superseded** by Terra-View's ADR 0003 (`docs/adr/0003-stack-components-and-names.md`). - SFM is the whole seismograph module, and "SDM" is retired as a name.