diff --git a/CHANGELOG.md b/CHANGELOG.md index 663c3f9..9836a4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,26 @@ All notable changes to seismo-relay are documented here. --- -## Unreleased +## v0.35.1 — 2026-12-03 + +**Micromate events read from the file alone, and three loose ends tied.** + +- **Micromate files (#44, #45).** SFM reads a Thor file's own settings, notes + and event time. + - Its own Micromate downloads no longer store a sample rate, pre-trigger and + record time of 0, blank notes, or a 1970 date. + - Every Micromate `.h5` now carries its pre-trigger. It had been 0, report or + not. +- **MiniMate settings (#48).** The legacy settings decode reads by position, + not by a "stable anchor" that was really two settings. It never struck: every + DL2 event was recorded in Fixed stop mode. +- **Housekeeping.** + - A fresh checkout passes the whole test suite on its own. + - The `bridges/` bench tools leave the production image. + +⚠ **This release owes a Thor-only backfill (`scripts/backfill_thor_events.py`) +and no schema change.** Series-3 data is unchanged, so do **not** run +`backfill_sidecars.py`. See *Migration*. ### Changed - **A fresh checkout passes the whole test suite on its own** @@ -125,6 +144,41 @@ All notable changes to seismo-relay are documented here. - **Instantel reference and CLAUDE.md:** #48 resolved. The "stable anchor" notes are retracted in place, and DL2's stop modes are counted. +### Migration + +⚠ **A Thor-only backfill, no schema migration.** Not rehearsed on a prod +snapshot. + +**Before you start:** +- `TOOL_VERSION` is bumped to **0.35.1**, which gates the Thor regeneration, so + no `--force` is needed. +- **Back up `seismo_relay.db` first.** + +**Then:** +1. **Deploy.** No table changes. + - The image no longer holds the `bridges/` code. + - The database volume is mounted at `/app/bridges/captures` as before. SFM + and the scripts find it there by default. +2. **In the `sfm` container, run `python scripts/backfill_thor_events.py + --dry-run`**, then the same without `--dry-run`. + - The dry run shows how many Thor events will be refreshed. + - The real run rewrites each Thor event's sidecar and `.h5`. Each `.h5` + gains its pre-trigger in samples (it was 0). Report-paired events take it + from the report's value, rounded to 0.01 s. + - Their samples, peaks and times do not change. +3. ⚠ **Do not run `backfill_sidecars.py` or `backfill_event_shape.py`.** + - The Series-3 decode did not change. + - The `TOOL_VERSION` bump would make `backfill_sidecars.py` regenerate every + Series-3 event (about 8 hours) for nothing. + - The Thor samples, which the shape metrics come from, are unchanged. + +**Terra-View** needs no change. One thing it shows moves: a Micromate +waveform chart's time axis. +- SFM's plot data starts the axis at minus the pre-trigger + (`event_hdf5.plot_json_from_hdf5`, `t0_ms = -pretrig_samples × dt`). +- With the stored 0, time 0 was the first sample. After the backfill, time 0 is + the trigger, as on MiniMate charts. + ## v0.35.0 — 2026-11-16 **The file-only decode reaches 80 of Blastware's 88 report fields, and SFM diff --git a/CLAUDE.md b/CLAUDE.md index c62c01a..80202cb 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -2,7 +2,7 @@ Ground-up Python replacement for **Blastware**, Instantel's Windows-only software for managing MiniMate Plus seismographs. Connects over direct RS-232 or cellular modem -(Sierra Wireless RV50 / RV55). Current version: **v0.35.0**. +(Sierra Wireless RV50 / RV55). Current version: **v0.35.1**. Stack-level context — which repo owns what, and how the three project versions pair — lives in `../terra-view/docs/tmi-stack.md`, which is also loaded as @@ -10,7 +10,7 @@ pair — lives in `../terra-view/docs/tmi-stack.md`, which is also loaded as --- -## Where things stand (updated 2026-11-16) +## Where things stand (updated 2026-12-03) Read this first when picking the project back up. diff --git a/README.md b/README.md index a451c09..573cf59 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# seismo-relay `v0.35.0` +# seismo-relay `v0.35.1` A ground-up replacement for **Blastware** — Instantel's aging Windows-only software for managing seismographs. Supports both the **MiniMate Plus @@ -127,6 +127,14 @@ over direct RS-232 or cellular modem (Sierra Wireless RV50 / RV55). > > ⚠ The deploy owes a backfill (about 8 hours on the NAS) and creates two > empty tables. See the changelog's *Migration*. +> +> **v0.35.1 (2026-12-03)** reads Micromate events from the file alone (#44, +> #45): their settings, notes, time and pre-trigger. It also reads a MiniMate's +> settings by position (#48), lets a fresh checkout pass the whole test suite, +> and takes the `bridges/` bench tools out of the production image. +> +> ⚠ The deploy owes a Thor-only backfill (`scripts/backfill_thor_events.py`). +> Do not run `backfill_sidecars.py` this time. See the changelog's *Migration*. > See [CHANGELOG.md](CHANGELOG.md) for full version history. --- diff --git a/minimateplus/event_file_io.py b/minimateplus/event_file_io.py index d752f69..417ac05 100644 --- a/minimateplus/event_file_io.py +++ b/minimateplus/event_file_io.py @@ -54,7 +54,7 @@ SIDECAR_KIND = "sfm.event" # bumped without a `pip install` re-run — leading to confusing stale # version stamps in sidecars. Bump this constant and CHANGELOG.md # together at release time. -TOOL_VERSION = "0.35.0" # file-only decode groups D2, E, F, over range, mic range; gates the backfill regen +TOOL_VERSION = "0.35.1" # Thor file settings, notes, time and pretrig_samples (#44, #45); gates the backfill regen try: # Best-effort: prefer the installed metadata when it's NEWER than the diff --git a/pyproject.toml b/pyproject.toml index d5264b0..9333cc1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "seismo-relay" -version = "0.35.0" +version = "0.35.1" description = "Python client and REST server for MiniMate Plus seismographs" requires-python = ">=3.10" dependencies = [