Files
seismo-relay/scripts
serversdownandClaude Opus 5.5 4bc669df4d feat(mlg): bulk import, and a cross-check against the event files
scripts/import_mlg_dir.py imports every .MLG under a directory (files
with records first, then the empty ones, so each unit's serial is known
first; dry run writes nothing).  scratch/check_mlg_vs_events.py matches
each Event Recorded record to an event file's footer (stop, flag word,
trigger source) in both directions, inside each unit's .MLG period.

Run on the dev box against DL2's 1,273 sample files (2026-11-13):
  import: 1273 ok, 0 errors, 231 empty, 0 unresolved, 2180 records, 13 s
  BE8081:  785 matched, 0 record-only, 0 file-only
  BE6907:    6 matched, 5 record-only, 0 file-only
  BE12844:  19 matched, 37 record-only, 0 file-only
  every record-only one stops after 2026-08-25, where the DL2 copy ends;
  the 4,303 footers of those three units' event files all pass their CRC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-13 13:54:50 -05:00
..