chore(release): v0.33.0 — SFM reads Series-3 events from the file alone, and proves it
A Blastware event that reaches SFM without its ASCII report -- every DL2 event before 2025, and every event SFM downloads itself -- now carries its sample rate, record time, pre-trigger, notes and event type, the histogram vector sum the unit stores, and a mic reading at one count = 0.25 Pa. The new decode checker proves each against Blastware's own _XML.XML reports for 70,042 DL2 events. - CHANGELOG: Unreleased -> v0.33.0 with theme and Migration. - TOOL_VERSION 0.33.0 (gates the backfill regeneration). - pyproject, CLAUDE.md and README versions; README status entry and roadmap (the Series-III codec item was long done; the file-only goal added); CLAUDE.md 'Where things stand' brought up to v0.33.0. Deploy: back up seismo_relay.db, then backfill_sidecars.py and backfill_event_shape.py (~2 h on the NAS). No schema change, no migration, event times do not move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
1 parent
287ef2a653
commit
6c7c6b0a15
5 files changed
+142
-30
No files matched your search
+77
-1
@@ -4,7 +4,41 @@ All notable changes to seismo-relay are documented here.
|
||||
|
||||
---
|
||||
|
||||
## Unreleased
|
||||
## v0.33.0 — 2026-11-01
|
||||
|
||||
**SFM reads Series-3 events from the file alone, and proves it against
|
||||
Blastware.**
|
||||
|
||||
**What was broken.** A Blastware event that reached SFM without its ASCII
|
||||
report used to come in half-decoded:
|
||||
- no sample rate
|
||||
- a "70 s" record time, which was really the record-type byte
|
||||
- blank notes
|
||||
- every histogram typed as a waveform
|
||||
- a histogram vector sum built from channel peaks taken at different moments
|
||||
- a mic reading about 95× low in psi
|
||||
|
||||
That matters more now: every DL2 event from before 2025 arrives with no report,
|
||||
and SFM's own download and call-in paths never have one.
|
||||
|
||||
**What this release does.** It reads all of those from the event file itself,
|
||||
and adds the decode checker that proves it. The checker compares SFM's
|
||||
file-only decode, field by field and sample by sample, with Blastware's own
|
||||
`_XML.XML` event reports for the 70,042 DL2 events that have one (2016–2026).
|
||||
|
||||
**Where that stands now:**
|
||||
- sample rate, record time, pre-trigger, notes and event type match on every
|
||||
event
|
||||
- geophone samples are exact on 6,491 / 6,524 waveforms (the 33 others are on
|
||||
the 1.250 in/s range, which SFM cannot read from the file yet)
|
||||
- the histogram vector sum matches on 69,919
|
||||
- the mic matches on all but a few dozen
|
||||
|
||||
Events imported with an ASCII report are unchanged on prod; the report still
|
||||
overlays.
|
||||
|
||||
⚠ **This release owes prod a backfill.** It does not move stored event times;
|
||||
see *Migration* below.
|
||||
|
||||
### Fixed
|
||||
- **The mic in psi was ~95× low: one MicL count is 0.25 Pa.**
|
||||
@@ -163,6 +197,9 @@ All notable changes to seismo-relay are documented here.
|
||||
- job number, ZC frequency, acceleration, displacement, time of peak,
|
||||
sensor check, battery, calibration, range, units and monitor log
|
||||
are not read yet
|
||||
- Later in this release, the record type (#41), the histogram vector sum
|
||||
and the mic conversion were fixed. See their entries above; each was
|
||||
proven by a full checker run with 0 regressions.
|
||||
- It replaces `scratch/verify_bw_fields_against_xml.py`, added and
|
||||
removed within this release.
|
||||
- **Operational consequence: none.** Nothing on the ingest path changes.
|
||||
@@ -191,6 +228,45 @@ All notable changes to seismo-relay are documented here.
|
||||
The old section stays below the banner as history.
|
||||
Docs only: no code or schema change, no migration, `TOOL_VERSION` unchanged.
|
||||
|
||||
### Migration
|
||||
|
||||
⚠ **This release owes prod a backfill.** It does not move stored event times.
|
||||
|
||||
**Before you start:**
|
||||
- `TOOL_VERSION` is bumped to **0.33.0**, which gates the regeneration, so no
|
||||
`--force` is needed.
|
||||
- No parser change, so no `--reparse-txt` is needed.
|
||||
- No schema change.
|
||||
- **Back up `seismo_relay.db` first.**
|
||||
|
||||
**Then, in the `sfm` container, in this order** (the scripts default to
|
||||
`bridges/captures/seismo_relay.db` and its `waveforms/`):
|
||||
|
||||
1. `python scripts/backfill_sidecars.py` re-decodes every Series-3 event file
|
||||
whose sidecar predates 0.33.0. Sidecars and `.h5` files regenerate, and each
|
||||
DB row refreshes in place (id and review kept). ⚠ **~2 h on the NAS.**
|
||||
- **Report-less events** pick up the new values: sample rate, record time,
|
||||
pre-trigger, notes, record type, histogram vector sum, mic.
|
||||
- **Report-paired events** keep the report's values.
|
||||
- **The record type** stays the same for every ACH file (`…W` / `…H`). Only a
|
||||
histogram stored under a 3-character manual-download name flips from
|
||||
Waveform to Histogram.
|
||||
2. `python scripts/backfill_event_shape.py --db-path bridges/captures/seismo_relay.db
|
||||
--store-root bridges/captures/waveforms` recomputes the shape and offset
|
||||
metrics from the regenerated files.
|
||||
|
||||
Series-4 (Thor) events are untouched; nothing in their decode changed.
|
||||
|
||||
**Not rehearsed on a prod snapshot** (v0.32.0 was). The risk is lower:
|
||||
- Event times do not move, so every row is matched in place.
|
||||
- No row is created or removed.
|
||||
- The full decode checker ran clean against all 70,112 DL2 event files before
|
||||
release.
|
||||
|
||||
**Afterwards**, the DL2 watcher can be widened for the 2016–2024 backfill:
|
||||
`MAX_EVENT_AGE_DAYS = 2130` reaches 2021. Set it back to 365 when done,
|
||||
because the same setting widens the heartbeat's scan.
|
||||
|
||||
---
|
||||
|
||||
## v0.32.0 — 2026-10-27
|
||||
|
||||
Reference in new issue
Block a user