Compare commits
21
Commits
No files matched your search
@@ -0,0 +1,28 @@
|
|||||||
|
# Line endings (2026-11-12): every text file is stored and checked out with LF,
|
||||||
|
# whatever tool or OS wrote it -- file types we have not invented yet included.
|
||||||
|
# The protocol reference and seismo_lab.py were CRLF, so any rewrite outside the
|
||||||
|
# Edit tool turned them into whole-file diffs, and merges into them had to be
|
||||||
|
# resolved byte by byte. Same rule as Terra-View's. tests/test_line_endings.py
|
||||||
|
# fails if a CRLF file gets in anyway.
|
||||||
|
* text=auto eol=lf
|
||||||
|
|
||||||
|
# Binary -- never converted.
|
||||||
|
*.bin binary
|
||||||
|
*.pdf binary
|
||||||
|
*.png binary
|
||||||
|
*.jpg binary
|
||||||
|
*.jpeg binary
|
||||||
|
*.gif binary
|
||||||
|
*.ico binary
|
||||||
|
*.h5 binary
|
||||||
|
*.pkl binary
|
||||||
|
*.db binary
|
||||||
|
*.sqlite binary
|
||||||
|
*.zip binary
|
||||||
|
*.gz binary
|
||||||
|
*.xlsx binary
|
||||||
|
*.docx binary
|
||||||
|
|
||||||
|
# Test fixtures are recorded bytes -- Blastware's own reports and exports, unit
|
||||||
|
# captures, event files -- kept byte for byte as ground truth: never converted.
|
||||||
|
tests/fixtures/** -text
|
||||||
+100
@@ -99,14 +99,104 @@ All notable changes to seismo-relay are documented here.
|
|||||||
- ⚠ **Operational:** codec change. It rides the next release's
|
- ⚠ **Operational:** codec change. It rides the next release's
|
||||||
`TOOL_VERSION` bump and backfill. No schema change. The line is on the
|
`TOOL_VERSION` bump and backfill. No schema change. The line is on the
|
||||||
decoded event only: not stored in the DB, sidecar or `.h5` yet.
|
decoded event only: not stored in the DB, sidecar or `.h5` yet.
|
||||||
|
- **Over range from the unit's own peaks: Blastware's `OORANGE`**
|
||||||
|
(`feat/decode-last-fields`, merged 2026-11-11; measured on DL2 2026-11-09;
|
||||||
|
reference D.6.15).
|
||||||
|
- **The rule:** a peak past full scale, 2,000 units (32,000 counts on
|
||||||
|
either geophone range; the mic in counts), is `OORANGE`. It holds per
|
||||||
|
channel and per histogram interval, from the unit's summary peaks, which
|
||||||
|
stay true where the stored samples clip or wrap.
|
||||||
|
- **The vector sum** is `OORANGE` exactly when a geophone is over: 43 / 43,
|
||||||
|
and never on its own (38 / 38 numeric, up to 14.49 in/s). That retracts
|
||||||
|
the open "vector sum alone" carve-out.
|
||||||
|
- **The report's "Out of Range" line** marks the mic over: 18 / 18.
|
||||||
|
- New `PeakValues.tran/vert/long/mic/pvs_over_range`, and
|
||||||
|
`event_file_io.over_full_scale()`.
|
||||||
|
- **Checker:** it matches `OORANGE` only by the flag, and a flag against a
|
||||||
|
printed number is a mismatch. The `saturation` carve-out now accepts no
|
||||||
|
DL2 event; it stays for a file without the unit's summary.
|
||||||
|
- **The checker reads each mic value in the unit Blastware printed.**
|
||||||
|
- The peak is read in its own `<Units>`, and a sample table by its cells
|
||||||
|
(a dB value is never under 60, psi never over 1). Blastware's event
|
||||||
|
`Units` line does not hold for the mic on every report.
|
||||||
|
- New carve-out `mic-units-mixed`, with evidence: a report that mixes dB
|
||||||
|
and psi in one mic column, or prints one unit in both mic columns of a
|
||||||
|
histogram row, is accepted when every differing cell is SFM's own value
|
||||||
|
in the other unit. 40 DL2 fields; a cell matching neither stays a
|
||||||
|
mismatch.
|
||||||
|
- **Decode checker:** **80 of 88 fields now match on every DL2 event**, 72
|
||||||
|
before (run `20261109-144544`, 0 regressions). What is left is 16 values
|
||||||
|
in two causes, left as they are by decision (Brian, 2026-11-11):
|
||||||
|
- the vector sum's last digit on 4 waveform/histogram twins: Blastware's is
|
||||||
|
about 1.5 ppm lower, cause unknown, and no fitted factor is applied;
|
||||||
|
- 4 accelerations: O117I1NK ×3 and S353I5PZ Vert.
|
||||||
|
- ⚠ **Operational:** codec change.
|
||||||
|
- It rides the next release's `TOOL_VERSION` bump and backfill.
|
||||||
|
- No schema change.
|
||||||
|
- The over-range flags are on the decoded event only: not stored in the
|
||||||
|
DB, sidecar or `.h5` yet.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- **The mic's own range: a range-1 mic reads an eighth.**
|
||||||
|
- The mic's channel block has a range byte at the geophones' offset
|
||||||
|
(label + 29). At `1` each count is 0.25 / 8 Pa.
|
||||||
|
- It is set on 7 DL2 events, and SFM read their mic 8× high, e.g.
|
||||||
|
K557J1XQ.GF0W: 79.4 dB(L), not 97.5.
|
||||||
|
- It is independent of the geophone range.
|
||||||
|
- New `Event.mic_range`.
|
||||||
|
- ⚠ **Operational:** after the next release's backfill those events' DB
|
||||||
|
`mic_ppv`, and their `.h5` mic samples, drop 8×. Report-paired events
|
||||||
|
keep the report's value.
|
||||||
|
- **The mic dB offset is 81.938216**, not 81.9384.
|
||||||
|
- Every count Blastware printed in DL2 (1,704 in sample tables, 520 in
|
||||||
|
histogram intervals, 494 histogram peaks) leaves
|
||||||
|
[81.9382058, 81.9382266].
|
||||||
|
- It fixes mic values one digit off at a rounding edge (count 463: 135.2,
|
||||||
|
not 135.3).
|
||||||
|
- Operational: dB is not stored. SFM's own reports change in the last
|
||||||
|
digit at most.
|
||||||
|
- **The test suite runs green, with 0 failures.** The 16 long-standing "known
|
||||||
|
failures" were two stale tests:
|
||||||
|
- 15 ASCII-report tests read from a removed `decode-re/` folder;
|
||||||
|
- 1 expected 0.0 where the decoder deliberately leaves peaks unknown.
|
||||||
|
|
||||||
|
A report-pairing test that the same stale path had been skipping now runs.
|
||||||
- **A unit without a mic keeps its sensor-check traces.** The trace decoder
|
- **A unit without a mic keeps its sensor-check traces.** The trace decoder
|
||||||
required all four records `0x3c`–`0x3f`, so BE16352 (no `0x3f`) had none in
|
required all four records `0x3c`–`0x3f`, so BE16352 (no `0x3f`) had none in
|
||||||
its `.h5`: all 8 of its DL2 events. Its three geophone traces are now decoded.
|
its `.h5`: all 8 of its DL2 events. Its three geophone traces are now decoded.
|
||||||
- ⚠ Operational: they appear after the next release's backfill.
|
- ⚠ Operational: they appear after the next release's backfill.
|
||||||
- **The decode checker reads the mic's above-range ZC flag under its real name**
|
- **The decode checker reads the mic's above-range ZC flag under its real name**
|
||||||
(`mic_zc_above_range`). A mic ">100" could never match before.
|
(`mic_zc_above_range`). A mic ">100" could never match before.
|
||||||
|
- **An escaped checksum is the checksum, not data (#58;
|
||||||
|
`fix/escaped-checksum`, merged 2026-11-12).** Measured on every recorded
|
||||||
|
Series-3 reply.
|
||||||
|
- **The bug:** a MiniMate sends a checksum of 02, 03 or 04 as `10 X`.
|
||||||
|
`S3FrameParser` kept that `10` as the reply's last data byte, so the reply
|
||||||
|
read one byte long.
|
||||||
|
- **The evidence:** 60 recordings, March to October 2026, three units.
|
||||||
|
SUM8 of the unescaped payload is the checksum on 7,747 / 7,747 replies;
|
||||||
|
272 arrived escaped, and every one checks as an escape pair.
|
||||||
|
- **What it misread:**
|
||||||
|
- live status (SUB 1C): battery and memory are counted from the end. 12 of
|
||||||
|
760 recorded status replies read 419.84 V and 251,654,656 bytes, for
|
||||||
|
6.76 V and 983,026;
|
||||||
|
- the call-home read (SUB 2C) came out one byte long, and SFM refused the
|
||||||
|
unit as "monitoring".
|
||||||
|
- The settings and waveform reads already took only what they asked for
|
||||||
|
(benched 2026-11-04); those trims stay as guards.
|
||||||
|
- **The 5A file builder had compensated since April.** With the parser
|
||||||
|
fixed, that rule would drop a real `0x10` ending a chunk (one A5 chunk in
|
||||||
|
ten ends in one), so it is removed. The 8 recorded BE9441 events still
|
||||||
|
build byte for byte as Blastware's own files.
|
||||||
|
- **`.a5.pkl` frames:** `A5_PICKLE_VERSION` 2. `load_a5` drops the stray
|
||||||
|
`0x10` from version-1 frames; all 28 pickles on the dev box rebuild
|
||||||
|
byte-identical.
|
||||||
|
- **`checksum_valid` now sums the unescaped payload**, and every recorded
|
||||||
|
reply checks. It had read about a third of good replies as bad; nothing
|
||||||
|
decides on it.
|
||||||
|
- Operational: none for stored events (prod's Series-3 events arrive through
|
||||||
|
`save_imported_bw`, which keeps no frames). No schema change, no
|
||||||
|
`TOOL_VERSION` bump, no backfill.
|
||||||
|
|
||||||
### Protocol / Documentation
|
### Protocol / Documentation
|
||||||
- **Reference D.6.12 (new):**
|
- **Reference D.6.12 (new):**
|
||||||
@@ -133,6 +223,16 @@ All notable changes to seismo-relay are documented here.
|
|||||||
- **Reference D.3.3:** the footer is the chain's last record (`00 1a`, id `0e`).
|
- **Reference D.3.3:** the footer is the chain's last record (`00 1a`, id `0e`).
|
||||||
- **Reference D.6.12:** its "`0x3c` / `0x3d`, before and after" retracted in
|
- **Reference D.6.12:** its "`0x3c` / `0x3d`, before and after" retracted in
|
||||||
place. It is one record per channel.
|
place. It is one record per channel.
|
||||||
|
- **Reference D.6.15 (new):** over range.
|
||||||
|
- **Reference D.6.6, corrected in place:** the mic's range byte; the dB offset
|
||||||
|
(the old window was too high); Blastware's mic unit labels and the mixed
|
||||||
|
columns.
|
||||||
|
- **Reference D.3.3:** the footer's last two bytes are a CRC-16/AUG-CCITT (init
|
||||||
|
`0x1D0F`), big-endian, over the footer record from its length prefix `00 1a`
|
||||||
|
through footer `[0:22]`. It holds on 70,041 / 70,041 DL2 files. Found by the
|
||||||
|
`.MLG` session; it retracts 2026-11-08's "no common CRC-16 fits".
|
||||||
|
- **Reference D.6.11 and CLAUDE.md:** the 80 / 88 status, and the two causes
|
||||||
|
left by decision.
|
||||||
- **Reference D.6, "Reading a mismatch":** 256, 4,096 and 65,536 mean a number
|
- **Reference D.6, "Reading a mismatch":** 256, 4,096 and 65,536 mean a number
|
||||||
outgrew its 8-, 12- or 16-bit box. Every case so far is listed (Brian's
|
outgrew its 8-, 12- or 16-bit box. Every case so far is listed (Brian's
|
||||||
observation, 2026-11-05).
|
observation, 2026-11-05).
|
||||||
|
|||||||
@@ -45,14 +45,17 @@ Read this first when picking the project back up.
|
|||||||
- **Byte layouts** of every field read from the file:
|
- **Byte layouts** of every field read from the file:
|
||||||
`docs/instantel_protocol_reference.md` Appendix **D.6**.
|
`docs/instantel_protocol_reference.md` Appendix **D.6**.
|
||||||
|
|
||||||
**Where the decoder stands on `dev`** (2026-11-08, run `20261108-034313`):
|
**Where the decoder stands on `dev`** (2026-11-09, run `20261109-144544`):
|
||||||
**72 of 88 fields match on every event**, up from about 6 before v0.33.0,
|
**80 of 88 fields match on every event**, up from about 6 before v0.33.0,
|
||||||
47 before group D and 59 after it.
|
47 before group D and 59 after it. Every other field matches or is accepted
|
||||||
|
under a carve-out with its evidence.
|
||||||
- Groups A, B, C and D part 1 shipped in v0.34.0 (#50, #51).
|
- Groups A, B, C and D part 1 shipped in v0.34.0 (#50, #51).
|
||||||
- D part 2 (the unit's own summary), E (the sensor check) and F (the
|
- D part 2 (the unit's own summary), E (the sensor check), F (the monitor
|
||||||
monitor log) are on `dev` and owe the next release a backfill.
|
log), over range and the mic fixes are on `dev` and owe the next release
|
||||||
- Still open: the mic stragglers, the `OORANGE` tag (18 events), the PPV /
|
a backfill.
|
||||||
vector-sum `OORANGE` carve-out, 4 accelerations.
|
- Left: 16 values in two causes -- the vector sum's last digit on 4
|
||||||
|
waveform/histogram twins, and 4 accelerations (reference D.6.11). Brian
|
||||||
|
decided 2026-11-11 to leave both as they are, documented.
|
||||||
- 🔑 **Events are keyed unit + time + type:** `UNIQUE(serial, timestamp,
|
- 🔑 **Events are keyed unit + time + type:** `UNIQUE(serial, timestamp,
|
||||||
record_type)` (#51, Migration 3 in `sfm/database.py`, `dev`).
|
record_type)` (#51, Migration 3 in `sfm/database.py`, `dev`).
|
||||||
- A waveform and its histogram may share a second: 209 times in prod's
|
- A waveform and its histogram may share a second: 209 times in prod's
|
||||||
@@ -114,11 +117,18 @@ Read this first when picking the project back up.
|
|||||||
- Blastware's "Number of Intervals" is the monitoring time ÷ the interval:
|
- Blastware's "Number of Intervals" is the monitoring time ÷ the interval:
|
||||||
a carve-out, 8 events.
|
a carve-out, 8 events.
|
||||||
- ✅ **Histogram PVS** = the stored per-interval PVS²: 69,989 / 70,042.
|
- ✅ **Histogram PVS** = the stored per-interval PVS²: 69,989 / 70,042.
|
||||||
**Mic:** one count = 0.25 Pa, dB offset 81.9384; a few dozen stragglers.
|
**Mic:** one count = 0.25 Pa (an eighth at mic range 1, the mic block's
|
||||||
|
label + 29), dB offset 81.938216 (2026-11-09; 81.9384 was too high).
|
||||||
|
- ✅ **Over range (D.6.15):** a peak past 2,000 units (32,000 counts; the
|
||||||
|
mic in counts) is Blastware's `OORANGE`, per channel and per interval; the
|
||||||
|
vector sum is `OORANGE` exactly when a geophone is, never on its own.
|
||||||
|
- 🔑 **Blastware's mic unit labels don't hold on every report** (D.6.6): the
|
||||||
|
peak carries its own `<Units>`, a sample table's cells say its unit, and
|
||||||
|
a few reports mix dB and psi in one column (carve-out `mic-units-mixed`).
|
||||||
- ❌ **Open:**
|
- ❌ **Open:**
|
||||||
- the mic stragglers: ~20 one-minute histograms with an interval or two off
|
- the vector sum's last digit on 4 waveform/histogram twins: Blastware's
|
||||||
- Blastware prints `OORANGE` when the vector sum alone exceeds the range
|
value is ~1.5 ppm lower, cause unknown (no factor applied)
|
||||||
(a carve-out to prove)
|
- 4 accelerations (D.6.12)
|
||||||
- ⬜ **Not read yet, in the order proposed** (2026-11-03):
|
- ⬜ **Not read yet, in the order proposed** (2026-11-03):
|
||||||
- ~~**A. Setup fields**~~ ✅ done on `dev`.
|
- ~~**A. Setup fields**~~ ✅ done on `dev`.
|
||||||
- ~~**B. Histogram interval detail**~~ ✅ done on `dev`. Frequencies (#50),
|
- ~~**B. Histogram interval detail**~~ ✅ done on `dev`. Frequencies (#50),
|
||||||
@@ -351,9 +361,12 @@ Read this first when picking the project back up.
|
|||||||
- ⚠ **A MiniMate's open setup menu wins:** a change sent while it is open is
|
- ⚠ **A MiniMate's open setup menu wins:** a change sent while it is open is
|
||||||
lost when the operator presses Cancel or Save (the menu writes its whole-block
|
lost when the operator presses Cancel or Save (the menu writes its whole-block
|
||||||
copy back). The preview warns; nobody in the menus while the office sends.
|
copy back). The preview warns; nobody in the menus while the office sends.
|
||||||
- ⚠ An escaped checksum byte leaves a stray `0x10` in a Series-3 reply's data
|
- ~~⚠ An escaped checksum byte leaves a stray `0x10` in a Series-3 reply's data
|
||||||
(about 1 frame in 85). The settings and waveform reads take exactly what they
|
(about 1 frame in 85).~~ **Fixed in the parser (#58, 2026-11-06, measured):**
|
||||||
asked for; other reads are unaudited for it.
|
a checksum of 02/03/04 arrives as `10 X`, and that `10` is never data (7,747 /
|
||||||
|
7,747 recorded replies check). It had misread 1C battery/memory (419.84 V) and
|
||||||
|
the 2C call-home read; the 5A file builder's own compensation is gone with it,
|
||||||
|
and pre-fix `.a5.pkl` frames are converted on load (pickle version 2).
|
||||||
- ⚠ The Micromate scheduler switch is not in any block SFM reads, so a leftover
|
- ⚠ The Micromate scheduler switch is not in any block SFM reads, so a leftover
|
||||||
schedule blocks a change even with the scheduler Off.
|
schedule blocks a change even with the scheduler Off.
|
||||||
**Ring path measured the same night:** with THOR's watchdog off, a call-home
|
**Ring path measured the same night:** with THOR's watchdog off, a call-home
|
||||||
@@ -486,9 +499,11 @@ Read this first when picking the project back up.
|
|||||||
retracted 5A model: SUB 71's "offset 0x1004" reads as length 0x0400 escaped, and
|
retracted 5A model: SUB 71's "offset 0x1004" reads as length 0x0400 escaped, and
|
||||||
Blastware escapes `03` in write data. A write whose payload holds a bare
|
Blastware escapes `03` in write data. A write whose payload holds a bare
|
||||||
02/03/04/10 may be malformed. One Blastware config-write capture settles it.
|
02/03/04/10 may be malformed. One Blastware config-write capture settles it.
|
||||||
🔑 **Replies follow the same rule (measured, 748/748):** every 02/03/04/10 escaped,
|
🔑 **Replies follow the same rule (measured, 748/748; 7,747 / 7,747 across every
|
||||||
checksum = SUM8 of the unescaped payload. The "S3 checksums frequently fail" belief
|
recording, #58):** every 02/03/04/10 escaped, the checksum too, and checksum = SUM8
|
||||||
is `S3FrameParser` summing its output with the `10` of `10 02/03/04` still in it.
|
of the unescaped payload. The "S3 checksums frequently fail" belief was
|
||||||
|
`S3FrameParser` summing its output with the `10` of `10 02/03/04` still in it
|
||||||
|
(fixed 2026-11-06: `checksum_valid` holds on every recorded reply).
|
||||||
~~**⚠ KNOWN BUG — the 5A walk breaks once a unit's buffer crosses 64 KB.**~~
|
~~**⚠ KNOWN BUG — the 5A walk breaks once a unit's buffer crosses 64 KB.**~~
|
||||||
`parse_strt_end_offset()` returns only `(end_key[2] << 8) | end_key[3]`,
|
`parse_strt_end_offset()` returns only `(end_key[2] << 8) | end_key[3]`,
|
||||||
discarding the key's page byte. An event starting at `0x0111F2A2` and ending
|
discarding the key's page byte. An event starting at `0x0111F2A2` and ending
|
||||||
@@ -994,8 +1009,9 @@ with zero mismatches. Before: 1 of 1196.
|
|||||||
shows mic in dB(L) with ~6 dB quantization steps. Need to map
|
shows mic in dB(L) with ~6 dB quantization steps. Need to map
|
||||||
ADC counts → dB(L) for direct comparison; likely
|
ADC counts → dB(L) for direct comparison; likely
|
||||||
`dB = 20*log10(|counts|) + offset` or similar.~~ **Solved in v0.33.0.**
|
`dB = 20*log10(|counts|) + offset` or similar.~~ **Solved in v0.33.0.**
|
||||||
One count = 0.25 Pa, and dB(L) = 81.9384 + 20·log10(|count|), an offset
|
One count = 0.25 Pa, and dB(L) = 81.938216 + 20·log10(|count|), an offset
|
||||||
measured from Blastware's printed values (reference D.6.6).
|
measured from Blastware's printed values (reference D.6.6; 81.9384 until
|
||||||
|
2026-11-09).
|
||||||
- **Variable-prefix segment descriptors** — 3 of the 75 ground-truth
|
- **Variable-prefix segment descriptors** — 3 of the 75 ground-truth
|
||||||
production events still truncate. The walk reaches a segment header
|
production events still truncate. The walk reaches a segment header
|
||||||
whose channel-id field is preceded by a *variable-width* prefix (2, 4
|
whose channel-id field is preceded by a *variable-width* prefix (2, 4
|
||||||
@@ -2037,7 +2053,8 @@ A re-analysis in the prior session incorrectly concluded `section[1]` is always
|
|||||||
and is device-specific. The 2026-04-09 re-analysis confirms `section[1]` was right.
|
and is device-specific. The 2026-04-09 re-analysis confirms `section[1]` was right.
|
||||||
|
|
||||||
**IMPORTANT — `frame.data` has checksum already stripped** by `S3FrameParser._finalise()`
|
**IMPORTANT — `frame.data` has checksum already stripped** by `S3FrameParser._finalise()`
|
||||||
(`raw_payload = body[:-1]`; `data = raw_payload[5:]`). There is NO trailing checksum byte in
|
(`raw_payload` = the body less its checksum, and less the `10` of an escaped one since #58;
|
||||||
|
`data = raw_payload[5:]`). There is NO trailing checksum byte in
|
||||||
`section`. All relative-from-end offsets must account for this.
|
`section`. All relative-from-end offsets must account for this.
|
||||||
|
|
||||||
Battery and memory fields are present in **both** states:
|
Battery and memory fields are present in **both** states:
|
||||||
|
|||||||
@@ -11,8 +11,11 @@
|
|||||||
|
|
||||||
| Date | Section | Change |
|
| Date | Section | Change |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
|
| 2026-11-11 | Appendix D.3.3 | ✅ **The footer's last two bytes are a CRC-16/AUG-CCITT** (init `0x1D0F`), big-endian, over the footer record from its length prefix `00 1a` through footer `[0:22]`: 70,041 / 70,041 DL2 files. Found by the `.MLG` session, verified here. Retracts 2026-11-08's "no common CRC-16 fits": every attempt had started at the footer itself. Same CRC family as the Series IV `0x1A` block's and the `.MLG` record's. |
|
||||||
|
| 2026-11-09 | Appendix D.6.15 (NEW), D.6.6, D.6.11 | ✅ **Over range and the mic.** **D.6.15:** a peak past full scale (2,000 units = 32,000 counts; the mic in counts) is Blastware's `OORANGE`, per channel and per histogram interval, from the unit's own summary peaks. The vector sum is `OORANGE` exactly when a geophone is (43 / 43); never on its own (38 / 38 numeric), which retracts D.6.11's open "vector sum alone" case. The `<OORANGE>` line marks the mic over (18 / 18). **D.6.6:** the mic has its own range byte (label + 29): at 1 a count is an eighth, 7 DL2 events SFM read 8× high. The dB offset is **81.938216**: [81.9383, 81.9385] was too high, and every count Blastware printed leaves [81.9382058, 81.9382266]. Blastware's mic unit labels do not hold on every report; some mix dB and psi in one column. **80 of 88 report fields now match on every DL2 event.** |
|
||||||
| 2026-11-08 | Appendix D.6.14 (NEW), D.3.3, D.6.11 | ✅ **The monitor log is in the footer.** Every DL2 report prints one Monitor Log line: the footer's ts1 and ts2, then words for the footer's flag word `[18:20]` (`0x0001` Event Recorded, `0x0002` Keyboard Exit, `0x0004` Remote Exit, `0x0008` Selfcheck Passed, `0x0010` Timer Stop, `0x0020` Modem Exit, `0x0200` Battery Low Exit, `0x0800` Memory Full Exit; the higher session-end bit wins, from one file). Rebuilt, it equals Blastware's character for character on 69,983 / 69,983. **D.3.3:** footer `[20:22]` is the trigger source again, `[22:24]` is zero; `[24:26]` still unknown, and no common CRC-16 or sum fits. **72 of 88 report fields now match on every DL2 event.** |
|
| 2026-11-08 | Appendix D.6.14 (NEW), D.3.3, D.6.11 | ✅ **The monitor log is in the footer.** Every DL2 report prints one Monitor Log line: the footer's ts1 and ts2, then words for the footer's flag word `[18:20]` (`0x0001` Event Recorded, `0x0002` Keyboard Exit, `0x0004` Remote Exit, `0x0008` Selfcheck Passed, `0x0010` Timer Stop, `0x0020` Modem Exit, `0x0200` Battery Low Exit, `0x0800` Memory Full Exit; the higher session-end bit wins, from one file). Rebuilt, it equals Blastware's character for character on 69,983 / 69,983. **D.3.3:** footer `[20:22]` is the trigger source again, `[22:24]` is zero; `[24:26]` still unknown, and no common CRC-16 or sum fits. **72 of 88 report fields now match on every DL2 event.** |
|
||||||
| 2026-11-06 | Appendix D.6.13 (NEW), D.3.3, D.6.11, D.6.12 | ✅ **The record chain to the footer, and the sensor check.** Walked from the event record, the chain (event `0x05` → unit's summary `0x32`–`0x35` → sensor checks `0x3c`–`0x3f` → footer `0x0e`) ends exactly at the file's end on all 70,041 DL2 files. The footer is its last record: `00 1a` is its length, `0e` its id. **Each sensor-check record's header holds the unit's results:** channel type `[2]`, status `[4]` (0 = passed), frequency × 10 `[5:7]`, ratio × 10 `[7:9]` and amplitude mV `[9:11]`. Blastware prints them as they are: 209,943 / 209,943 geophone frequencies and ratios, 69,975 / 69,975 mic frequencies and amplitudes. The result is Passed / Check / Disabled by status and type. The status is the unit's own verdict, its bits not decoded. D.6.12's "`0x3c` / `0x3d`, before and after" retracted in place: one record per channel. **71 of 88 report fields now match on every DL2 event.** |
|
| 2026-11-06 | Appendix D.6.13 (NEW), D.3.3, D.6.11, D.6.12 | ✅ **The record chain to the footer, and the sensor check.** Walked from the event record, the chain (event `0x05` → unit's summary `0x32`–`0x35` → sensor checks `0x3c`–`0x3f` → footer `0x0e`) ends exactly at the file's end on all 70,041 DL2 files. The footer is its last record: `00 1a` is its length, `0e` its id. **Each sensor-check record's header holds the unit's results:** channel type `[2]`, status `[4]` (0 = passed), frequency × 10 `[5:7]`, ratio × 10 `[7:9]` and amplitude mV `[9:11]`. Blastware prints them as they are: 209,943 / 209,943 geophone frequencies and ratios, 69,975 / 69,975 mic frequencies and amplitudes. The result is Passed / Check / Disabled by status and type. The status is the unit's own verdict, its bits not decoded. D.6.12's "`0x3c` / `0x3d`, before and after" retracted in place: one record per channel. **71 of 88 report fields now match on every DL2 event.** |
|
||||||
|
| 2026-11-06 (2) | §3 (replies), SUB 1C, 2C, 15, 5A file build | ✅ **An escaped checksum is the checksum, not data (#58, measured).** A reply whose checksum is 02, 03 or 04 sends it as `10 X`, and `S3FrameParser` kept that `10` as the frame's last data byte (first seen on BE9441's 1A read, 2026-11-04). **Across every recorded reply** (60 captures, March to October 2026, three units) SUM8 of the unescaped payload is the checksum on **7,747 / 7,747**, widening 2026-10-26 (4)'s 748 / 748. **272** checksums arrived escaped; every one checks as an escape pair, and no checksum ever arrived as a bare 02/03/04. **What the stray byte did:** **SUB 1C** battery and memory are counted from the end, so 12 of 760 recorded status replies read 419.84 V and 251,654,656 bytes (for 6.76 V and 983,026). A **SUB 2C** call-home read came out one byte long and was refused as "monitoring". The **SUB 15 probe reply** (`00 00 00 00 0a …`, the same on BE11529, BE18189 and BE9441) always has an escaped checksum: 230 of the 272, harmless, as nothing reads it. The **5A file builder** had compensated since 2026-04-21 (the "split pair" rule). With the parser fixed, that rule would drop a real `0x10` ending a chunk (one A5 chunk in ten ends in one; none recorded with an escaped checksum as well), so it is removed. The 1A and 09 reads' length trims (2026-11-04) stay as guards. `checksum_valid` now sums the unescaped payload, and every recorded reply checks. |
|
||||||
| 2026-11-05 | Appendix D.6.12 (NEW), D.6.11, §7.8.9 | ✅ **The unit's own event summary, in every event file.** The embedded event record is the first of a `[length][id][payload]` chain. It holds the vector-sum peak's sample (6,492 / 6,493). Then one 22-byte record per channel, ids `0x32` Tran … `0x35` MicL: min, max, peak sample, **half-period** and a **displacement integral**. Blastware prints them as they are. **ZC frequency** = (rate / 2) / half-period, with the interval rule's words: 25,966 / 25,966 waveform and 253,958 / 253,958 histogram channel values. **Peak displacement** = half the integral: 19,479 / 19,479. Recomputing from the samples had reached 46% and 84%: the unit works at full resolution. **Times of peak** follow the unit's peak sample. That differs from the samples only on **O117I1NK.R70W**, whose stored samples wrap at the trigger by 65,536 counts (Blastware's own table has the same values). Peak acceleration is Blastware's own computation from the stored samples (group D part 1, documented here too). The unit stores its own largest step at `[15:21]` (inferred), which Blastware does not print. §7.8.9's "constant, meaning ❓" bytes amended in place. 59 of 88 report fields now match on every DL2 event (47 before group D). |
|
| 2026-11-05 | Appendix D.6.12 (NEW), D.6.11, §7.8.9 | ✅ **The unit's own event summary, in every event file.** The embedded event record is the first of a `[length][id][payload]` chain. It holds the vector-sum peak's sample (6,492 / 6,493). Then one 22-byte record per channel, ids `0x32` Tran … `0x35` MicL: min, max, peak sample, **half-period** and a **displacement integral**. Blastware prints them as they are. **ZC frequency** = (rate / 2) / half-period, with the interval rule's words: 25,966 / 25,966 waveform and 253,958 / 253,958 histogram channel values. **Peak displacement** = half the integral: 19,479 / 19,479. Recomputing from the samples had reached 46% and 84%: the unit works at full resolution. **Times of peak** follow the unit's peak sample. That differs from the samples only on **O117I1NK.R70W**, whose stored samples wrap at the trigger by 65,536 counts (Blastware's own table has the same values). Peak acceleration is Blastware's own computation from the stored samples (group D part 1, documented here too). The unit stores its own largest step at `[15:21]` (inferred), which Blastware does not print. §7.8.9's "constant, meaning ❓" bytes amended in place. 59 of 88 report fields now match on every DL2 event (47 before group D). |
|
||||||
| 2026-11-04 | SUB 1A / 09 reads, SUB 68–74 settings write, the keypad | **SFM's settings write, benched on BE9441 (Brian at the unit; ~12 writes, each with his go).** **Every write** -- trigger 0.04 ↔ 0.05, a note, several fields at once (Project, job number + its report flag, trigger), the alarm 1.0 ↔ 1.5, and a full restore -- was acknowledged on all nine steps (`97 8C 8E×5 8D 7D 7C 96 8B 8D`), read back as sent, and **confirmed on the unit's own screen**; the unit ended byte for byte as found. Moved bytes were exactly the field's: trigger f32 at each geophone channel +30 (`+31..+33` moved), **alarm f32 at channel +38** (`+39` moved; the first Series-3 alarm write), job number `[40:42]`, its report bit `[39]` `0x02`, a note's value window. **`[26:28]`** went `01 7f` → `00 00` on SFM's first write (Blastware's value) and the unit **set `01 7f` again during the next monitoring session**. The **two bytes after the block** went out as `00 00` (Blastware sends a per-unit constant) and were taken. **🔑 Escaped-checksum artifact:** when a reply's checksum byte is itself escaped (02 / 03 / 04, ~1 frame in 85), `S3FrameParser` keeps the escape's `0x10` and strips only the byte after it, so the frame's data gains one trailing `0x10`. It hit the first live 1A read (frame B 1,026 bytes after the header); the 12 recorded reads never had. SFM's settings read and waveform read now take exactly the length they asked for. **🔑 The keypad menu wins:** a write sent while the setup menu was open was acknowledged and read back, then **lost when the operator pressed Cancel or Save** -- the menu writes its own copy of the **whole** block back (both times the block returned byte for byte to its state when the menu was opened). A keypad Cancel with nothing pending leaves the block unchanged. **While monitoring**, the 1A read returns the device-info block (SFM refuses, nothing sent), and the opening poll was answered only intermittently (2 of 3 attempts timed out). Code: `minimateplus.protocol.read_compliance_content` / `read_waveform_data_raw`, `micromate.setup_fields`; notes `~/bench-logs/2026-11-04-sfm-settings/`. |
|
| 2026-11-04 | SUB 1A / 09 reads, SUB 68–74 settings write, the keypad | **SFM's settings write, benched on BE9441 (Brian at the unit; ~12 writes, each with his go).** **Every write** -- trigger 0.04 ↔ 0.05, a note, several fields at once (Project, job number + its report flag, trigger), the alarm 1.0 ↔ 1.5, and a full restore -- was acknowledged on all nine steps (`97 8C 8E×5 8D 7D 7C 96 8B 8D`), read back as sent, and **confirmed on the unit's own screen**; the unit ended byte for byte as found. Moved bytes were exactly the field's: trigger f32 at each geophone channel +30 (`+31..+33` moved), **alarm f32 at channel +38** (`+39` moved; the first Series-3 alarm write), job number `[40:42]`, its report bit `[39]` `0x02`, a note's value window. **`[26:28]`** went `01 7f` → `00 00` on SFM's first write (Blastware's value) and the unit **set `01 7f` again during the next monitoring session**. The **two bytes after the block** went out as `00 00` (Blastware sends a per-unit constant) and were taken. **🔑 Escaped-checksum artifact:** when a reply's checksum byte is itself escaped (02 / 03 / 04, ~1 frame in 85), `S3FrameParser` keeps the escape's `0x10` and strips only the byte after it, so the frame's data gains one trailing `0x10`. It hit the first live 1A read (frame B 1,026 bytes after the header); the 12 recorded reads never had. SFM's settings read and waveform read now take exactly the length they asked for. **🔑 The keypad menu wins:** a write sent while the setup menu was open was acknowledged and read back, then **lost when the operator pressed Cancel or Save** -- the menu writes its own copy of the **whole** block back (both times the block returned byte for byte to its state when the menu was opened). A keypad Cancel with nothing pending leaves the block unchanged. **While monitoring**, the 1A read returns the device-info block (SFM refuses, nothing sent), and the opening poll was answered only intermittently (2 of 3 attempts timed out). Code: `minimateplus.protocol.read_compliance_content` / `read_waveform_data_raw`, `micromate.setup_fields`; notes `~/bench-logs/2026-11-04-sfm-settings/`. |
|
||||||
| 2026-11-03 (5) | SUB 1A / 71 / 69 (settings read and write) | **The settings block, read and written as content (measured, BE9441's 10-26 recording and BE11529's 2026-04-20 captures).** **Read:** unescape each 1A data frame and take `data[11:]`; every frame but the last starts with one `00` that is not content; dropped, the frames join into **2,090 bytes headed by N = 2090: Series IV's `0x1A` content layout** (12 / 12 reads, Blastware's 4 × 512 + 42 and SFM's 1024 + 1024 + 42). The old "stable anchor" `be 80 00 00 00 00` is content `[12:18]` (pre-trigger −0.25 + stop mode Fixed). **Round trip:** the read after each of Blastware's two 10-26 writes equals the image it had just written, all 2,090 bytes (2 / 2). While monitoring, the read returns the device-info block (`0e 'BE9441' …`, 5 / 5). **`[26:28]`:** Blastware writes `00 00` on all 11 writes; the unit reads `01 7f` after a monitoring session (BE9441 10-26, BE11529 4-20 15:19) and sets it by itself; meaning unknown. **The two bytes after the block** (`[2090:2092]` of the 0x71 image) are Blastware's own per-unit constant -- `7c ea` on all nine of BE11529's writes, `0c e9` on both of BE9441's -- not the block's CRC-16/AUG, and in no reply of BE9441's three-hour session; SFM sends `00 00`. **`0x09` `[200:202]`:** Blastware echoed the unit's `8c 76` on all nine April writes; on 10-26 it read `17 17` and wrote `78 76` (read back so); meaning unknown. **Blastware re-renders the mic trigger level:** on BE11529's first write (4-20 15:19) the unit read 0.005 and 0.01 psi in its two `MicL` channel blocks (3 and 7; Series 3 carries 8 channel blocks of 48 bytes from `[1708]`, the second four prefixed `0x32`) and Blastware wrote 0.004983 and 0.010058 -- the same levels to its 0.1 dB; every other write left them alone. **Every one of the 11 Blastware writes reproduces** from the block before it with only the fields Blastware changed (plus that re-render and, on 10-26, the mic bit of `[25]`). Code: `minimateplus.protocol.assemble_compliance_content`, `read_compliance_content`, `micromate.setup_fields`; tests `tests/test_s3_settings_read.py`, `tests/test_setup_fields.py`. |
|
| 2026-11-03 (5) | SUB 1A / 71 / 69 (settings read and write) | **The settings block, read and written as content (measured, BE9441's 10-26 recording and BE11529's 2026-04-20 captures).** **Read:** unescape each 1A data frame and take `data[11:]`; every frame but the last starts with one `00` that is not content; dropped, the frames join into **2,090 bytes headed by N = 2090: Series IV's `0x1A` content layout** (12 / 12 reads, Blastware's 4 × 512 + 42 and SFM's 1024 + 1024 + 42). The old "stable anchor" `be 80 00 00 00 00` is content `[12:18]` (pre-trigger −0.25 + stop mode Fixed). **Round trip:** the read after each of Blastware's two 10-26 writes equals the image it had just written, all 2,090 bytes (2 / 2). While monitoring, the read returns the device-info block (`0e 'BE9441' …`, 5 / 5). **`[26:28]`:** Blastware writes `00 00` on all 11 writes; the unit reads `01 7f` after a monitoring session (BE9441 10-26, BE11529 4-20 15:19) and sets it by itself; meaning unknown. **The two bytes after the block** (`[2090:2092]` of the 0x71 image) are Blastware's own per-unit constant -- `7c ea` on all nine of BE11529's writes, `0c e9` on both of BE9441's -- not the block's CRC-16/AUG, and in no reply of BE9441's three-hour session; SFM sends `00 00`. **`0x09` `[200:202]`:** Blastware echoed the unit's `8c 76` on all nine April writes; on 10-26 it read `17 17` and wrote `78 76` (read back so); meaning unknown. **Blastware re-renders the mic trigger level:** on BE11529's first write (4-20 15:19) the unit read 0.005 and 0.01 psi in its two `MicL` channel blocks (3 and 7; Series 3 carries 8 channel blocks of 48 bytes from `[1708]`, the second four prefixed `0x32`) and Blastware wrote 0.004983 and 0.010058 -- the same levels to its 0.1 dB; every other write left them alone. **Every one of the 11 Blastware writes reproduces** from the block before it with only the fields Blastware changed (plus that re-render and, on 10-26, the mic bit of `[25]`). Code: `minimateplus.protocol.assemble_compliance_content`, `read_compliance_content`, `micromate.setup_fields`; tests `tests/test_s3_settings_read.py`, `tests/test_setup_fields.py`. |
|
||||||
@@ -3489,10 +3492,18 @@ The footer terminates the N00 file. Its bytes come directly from the terminator
|
|||||||
| 18 | 2 | monitor-log flags | uint16 BE: the words of Blastware's Monitor Log line (D.6.14) ✅ 69,983 / 69,983 |
|
| 18 | 2 | monitor-log flags | uint16 BE: the words of Blastware's Monitor Log line (D.6.14) ✅ 69,983 / 69,983 |
|
||||||
| 20 | 2 | trigger source | the event record's again: `00 01`–`00 08` a channel, `02 00` Manual, `04 00` a histogram ✅ 69,983 / 69,983 |
|
| 20 | 2 | trigger source | the event record's again: `00 01`–`00 08` a channel, `02 00` Manual, `04 00` a histogram ✅ 69,983 / 69,983 |
|
||||||
| 22 | 2 | `00 00` | 69,983 / 69,983 |
|
| 22 | 2 | `00 00` | 69,983 / 69,983 |
|
||||||
| 24 | 2 | CRC | 2-byte CRC — algorithm unconfirmed. ⚠ 2026-11-08: no common CRC-16 (XMODEM, CCITT-FALSE, AUG-CCITT, KERMIT, ARC, MODBUS, BUYPASS) nor a 16-bit sum, over the file, from STRT, after STRT or over the footer, fits 40 sampled files. That it is a checksum is not shown |
|
| 24 | 2 | CRC | 2-byte CRC — algorithm unconfirmed. ⚠ 2026-11-08: no common CRC-16 (XMODEM, CCITT-FALSE, AUG-CCITT, KERMIT, ARC, MODBUS, BUYPASS) nor a 16-bit sum, over the file, from STRT, after STRT or over the footer, fits 40 sampled files. That it is a checksum is not shown. **Retracted 2026-11-11: see the note below the table** |
|
||||||
|
|
||||||
**CRC:** The 2-byte CRC at footer[24:26] has an unconfirmed algorithm. In M529LIY6.N00 it reads `fe da`. Attempts to match CRC-16/CCITT, CRC-16/IBM, CRC-32 (truncated), and 40+ polynomial/init combinations all failed. The writer copies it verbatim from the terminator frame.
|
**CRC:** The 2-byte CRC at footer[24:26] has an unconfirmed algorithm. In M529LIY6.N00 it reads `fe da`. Attempts to match CRC-16/CCITT, CRC-16/IBM, CRC-32 (truncated), and 40+ polynomial/init combinations all failed. The writer copies it verbatim from the terminator frame.
|
||||||
|
|
||||||
|
> ✅ **SOLVED 2026-11-11 (measured; found by the `.MLG` session, verified here):** footer
|
||||||
|
> `[24:26]` is a **CRC-16/AUG-CCITT** (poly `0x1021`, init `0x1D0F`), stored big-endian. It covers
|
||||||
|
> the footer record from its **length prefix**: the `00 1a` before the footer, then footer
|
||||||
|
> `[0:22]`, 24 bytes in all. The zero word `[22:24]` is not covered. Matches **70,041 / 70,041**
|
||||||
|
> DL2 files. Every earlier attempt, including AUG-CCITT, started at the footer itself and missed
|
||||||
|
> the length prefix. It is the same CRC family as the Series IV `0x1A` block's and the `.MLG`
|
||||||
|
> record's (D.4).
|
||||||
|
|
||||||
### D.4 MLG File Format — Monitor Log
|
### D.4 MLG File Format — Monitor Log
|
||||||
|
|
||||||
**File layout:** `[308B header] [N × 292B records]`
|
**File layout:** `[308B header] [N × 292B records]`
|
||||||
@@ -3860,6 +3871,35 @@ Each interval stores its peak vector sum **squared**:
|
|||||||
- **Verified:** interval psi mismatches fell from 42,783 to 26, and mic peak mismatches from 345
|
- **Verified:** interval psi mismatches fell from 42,783 to 26, and mic peak mismatches from 345
|
||||||
to 40.
|
to 40.
|
||||||
|
|
||||||
|
> ⚠ **CORRECTED 2026-11-09 (measured): the offset is 81.938216, and [81.9383, 81.9385] was too
|
||||||
|
> high.** Every count Blastware printed in DL2 leaves **[81.9382058, 81.9382266]**:
|
||||||
|
> - 1,704 distinct counts in waveform sample tables, 520 in histogram intervals and 494
|
||||||
|
> histogram peaks;
|
||||||
|
> - count 129 (124.2) bounds the offset from below, 463 (135.2; 81.9384 prints 135.3) and 677
|
||||||
|
> (138.5) from above.
|
||||||
|
>
|
||||||
|
> No count prints two ways once the cases below are set aside, so one offset serves every
|
||||||
|
> printing path. The physical 81.93820 misses only count 129.
|
||||||
|
|
||||||
|
**The mic has its own range** (2026-11-09, measured). Its channel block carries a range byte at
|
||||||
|
the geophones' offset, label + 29 (D.6.4). At `1` each count is an eighth: 0.25 / 8 Pa.
|
||||||
|
- It is set on 7 DL2 events, all of them Blastware's values ÷ 8 (K557J1XQ.GF0W: 79.4 dB(L), not
|
||||||
|
97.5). It is set on none of the other 70,026.
|
||||||
|
- It is independent of the geophone range: 28 events have Sensitive geophones and a range-0 mic.
|
||||||
|
- SFM read those 7 mics 8× high until 2026-11-09.
|
||||||
|
|
||||||
|
**Blastware's mic unit labels do not hold on every report** (2026-11-09, measured). The decode
|
||||||
|
checker reads each value in the unit actually printed:
|
||||||
|
- **The peak carries its own `<Units>`.** 7 reports set it to dB under a psi Units line, 3 the
|
||||||
|
reverse; on 2 of those (K888HLJ1.UP0H, S353LADC.OE0H) the peak's own label is the wrong one.
|
||||||
|
- **A sample table has no unit of its own and need not follow the line.** S353JTHU.DT0W prints
|
||||||
|
dB under psi on both. Its cells say which: a mic dB value is never under 60, psi never over 1.
|
||||||
|
- **Some reports mix the two inside one column.** K441L9IN.OT0W prints psi `0.000` for counts of
|
||||||
|
1 to 3 in a dB table; S353JTHU.DT0W psi rows, then dB rows. A histogram row can print one unit
|
||||||
|
in both mic columns: I145HKWT.DY0H row 672 reads 95.92 under psi(L) and dB(L).
|
||||||
|
- The checker's `mic-units-mixed` carve-out accepts such a field when every cell SFM disagrees
|
||||||
|
with is SFM's own value in the other unit. A cell matching neither is still a mismatch.
|
||||||
|
|
||||||
**Three things share the word "units". Keep them apart** (2026-11-03):
|
**Three things share the word "units". Keep them apart** (2026-11-03):
|
||||||
|
|
||||||
| Name | What it is | Its units are set by | Where it shows |
|
| Name | What it is | Its units are set by | Where it shows |
|
||||||
@@ -3991,10 +4031,11 @@ All four channels match every DL2 histogram.
|
|||||||
|
|
||||||
#### D.6.11 Not read from the file yet
|
#### D.6.11 Not read from the file yet
|
||||||
|
|
||||||
*Updated 2026-11-08. 72 of 88 report fields now match on every DL2 event: 47 before group D,
|
*Updated 2026-11-09. 80 of 88 report fields now match on every DL2 event: 47 before group D,
|
||||||
59 after it, 71 with the sensor check, 72 with the monitor log (run `20261108-034313`,
|
59 after it, 71 with the sensor check, 72 with the monitor log, 80 with over range and the mic
|
||||||
0 regressions). Still open: the mic stragglers, the `OORANGE` tag (18 events), the
|
(run `20261109-144544`, 0 regressions). Every other field matches or is accepted under a
|
||||||
PPV / vector-sum `OORANGE` carve-out, and 4 accelerations (D.6.12).*
|
carve-out with its evidence. What is left is 16 values in two causes, below: the vector sum's
|
||||||
|
last digit on 4 twins, and 4 accelerations.*
|
||||||
- **Fields not read yet:**
|
- **Fields not read yet:**
|
||||||
- extended notes
|
- extended notes
|
||||||
- ~~sensor check results~~ **read, 2026-11-06 (D.6.13)**: the unit's own, in the header of
|
- ~~sensor check results~~ **read, 2026-11-06 (D.6.13)**: the unit's own, in the header of
|
||||||
@@ -4005,9 +4046,19 @@ PPV / vector-sum `OORANGE` carve-out, and 4 accelerations (D.6.12).*
|
|||||||
displacement and time of peak, all stored in the file. Acceleration is the exception:
|
displacement and time of peak, all stored in the file. Acceleration is the exception:
|
||||||
the unit stores its own, but Blastware prints its own computation from the samples.
|
the unit stores its own, but Blastware prints its own computation from the samples.
|
||||||
- **Open cases:**
|
- **Open cases:**
|
||||||
- about 20 one-minute histograms with a mic peak an interval or two off
|
- ~~about 20 one-minute histograms with a mic peak an interval or two off~~ **explained
|
||||||
- Blastware prints `OORANGE` when an event's vector sum alone exceeds the range, with no
|
2026-11-09 (D.6.6):** Blastware printed one unit in both mic columns of that row.
|
||||||
clamped channel (a carve-out still to prove; the interval version is proven, D.6.9)
|
- ~~Blastware prints `OORANGE` when an event's vector sum alone exceeds the range~~
|
||||||
|
**refuted 2026-11-09 (D.6.15):** it never does; the vector sum is `OORANGE` exactly when a
|
||||||
|
geophone is over range.
|
||||||
|
- **The vector sum's last digit on 4 waveform/histogram twins** (8 events: K888KLSU,
|
||||||
|
N599HVPW, O121L4L1, S354KD9N). Each true value sits a few parts in 10⁷ above a rounding
|
||||||
|
edge, and Blastware rounds down. A factor of 0.9999983–0.9999989 fits all 69,940 printed
|
||||||
|
vector sums; the acceleration's 8.5 ppm does not (69,918). Cause unknown; SFM does not
|
||||||
|
apply a factor. **Decided (Brian, 2026-11-11): left as is and documented** -- a fitted
|
||||||
|
factor on a compliance number is not worth one last digit on 8 events.
|
||||||
|
- **4 accelerations** (D.6.12): O117I1NK.R70W ×3 and S353I5PZ.EP0W Vert. **Decided (Brian,
|
||||||
|
2026-11-11): left as is and documented** -- O117I1NK's fit rests on one clipped file.
|
||||||
- **Resolved on `dev`, 2026-11-02 → 03:**
|
- **Resolved on `dev`, 2026-11-02 → 03:**
|
||||||
- the 37 histograms that decoded wrongly (D.6.1, D.6.5)
|
- the 37 histograms that decoded wrongly (D.6.1, D.6.5)
|
||||||
- the 26 histogram start dates a day off (D.3.3; 17 of them were the same 5 s files, timed
|
- the 26 histogram start dates a day off (D.3.3; 17 of them were the same 5 s files, timed
|
||||||
@@ -4174,6 +4225,29 @@ Rebuilt that way, the line equals Blastware's **character for character on 69,98
|
|||||||
SFM reads the line only when the record chain is whole (D.6.13), which proves the last 26
|
SFM reads the line only when the record chain is whole (D.6.13), which proves the last 26
|
||||||
bytes are the footer.
|
bytes are the footer.
|
||||||
|
|
||||||
|
#### D.6.15 Over range — Blastware's `OORANGE` ✅ 2026-11-09
|
||||||
|
|
||||||
|
**A peak is over range when it passes full scale: 2,000 units.** That is 32,000 counts on either
|
||||||
|
geophone range (16 counts to the unit), and 2,000 counts on the mic. For a channel's peak SFM uses
|
||||||
|
the unit's own summary (D.6.12), whose min and max are true values even where the stored
|
||||||
|
samples clip or wrap.
|
||||||
|
|
||||||
|
| Where | Blastware prints `OORANGE` | DL2 (2026-11-09) |
|
||||||
|
|---|---|---|
|
||||||
|
| a channel's PPV / the mic's PSPL | its summary peak passes 2,000 | numeric up to 1,991 (geophones) / 1,933 (mic), `OORANGE` from 2,001: 209,784 + 69,957 numeric, 60 + 18 over |
|
||||||
|
| the event's vector sum | **any geophone** is over | `OORANGE` on all 43 events with one, numeric on all 38 whose vector sum alone passes the range (up to 14.49 in/s) |
|
||||||
|
| the report's "Out of Range" line (`<OORANGE>`) | the **mic** is over | 18 / 18, and on no other event |
|
||||||
|
| a histogram interval's peak | that interval's peak passes 2,000 | numeric up to 1,846 / 1,414, `OORANGE` from 2,001: 8,612 + 5,744 numeric, 22 + 12 over |
|
||||||
|
| a histogram interval's vector sum | any geophone in that interval is over | 16 / 16, and numeric on all 2,862 without |
|
||||||
|
|
||||||
|
- The geophone Sensitive range does not change the threshold: Sensitive-range events read
|
||||||
|
numeric up to 88 units and `OORANGE` from 2,001.
|
||||||
|
- **Retracted in passing:** "Blastware prints `OORANGE` when the vector sum alone exceeds the
|
||||||
|
range" (D.6.11's open case). It never does.
|
||||||
|
- `PeakValues.*_over_range` carries it. The decode checker matches `OORANGE` only by that flag,
|
||||||
|
and a flag against a printed number is a mismatch. The `saturation` carve-out now accepts no
|
||||||
|
DL2 event; it stays for a file without the unit's summary.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
*All findings reverse-engineered from live RS-232 bridge captures.*
|
*All findings reverse-engineered from live RS-232 bridge captures.*
|
||||||
|
|||||||
@@ -0,0 +1,655 @@
|
|||||||
|
# Monitor logs (.MLG) and each unit's monitoring timeline — Implementation Plan
|
||||||
|
|
||||||
|
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||||
|
|
||||||
|
**Goal:** SFM reads Blastware `.MLG` files, stores them, and answers "was unit X monitoring at
|
||||||
|
time T?" and "when was it not, and why?" from each unit's monitoring timeline.
|
||||||
|
|
||||||
|
**Architecture:**
|
||||||
|
- **Codec library:** a pure reader and writer in `minimateplus/mlg_file.py`.
|
||||||
|
- **SFM:**
|
||||||
|
- two new tables, plus the original files kept in the waveform store
|
||||||
|
- one ingest function shared by the HTTP route and the bulk-import script
|
||||||
|
- the timeline as a pure function over stored rows, computed on each request
|
||||||
|
|
||||||
|
**Tech Stack:** Python 3.10, FastAPI, SQLite (`sfm/database.py`), pytest.
|
||||||
|
|
||||||
|
**Spec:** `docs/superpowers/specs/2026-11-09-mlg-unit-timeline-design.md`. Read it first: the
|
||||||
|
measured format, session shapes and anti-goals are there and are not repeated here.
|
||||||
|
|
||||||
|
## Global Constraints
|
||||||
|
|
||||||
|
- **Where to work:** worktree `~/seismo-relay-mlg`, branch `feat/mlg-import`.
|
||||||
|
- Never commit to `dev` or `main`.
|
||||||
|
- Do not touch `CHANGELOG.md` (it is written on `dev` at merge).
|
||||||
|
- **Do not edit** `minimateplus/event_file_io.py`, `decode_check.py`, `histogram_codec.py` or
|
||||||
|
`waveform_codec.py`. Another session owns them; import from them only.
|
||||||
|
- **Running tests:** `cd ~/seismo-relay-mlg && ~/seismo-relay/.venv/bin/python -m pytest …`.
|
||||||
|
- The worktree has no venv. The tests put the worktree first on `sys.path`.
|
||||||
|
- `httpx` is not installed, so `starlette.testclient` tests skip silently. Test routes by
|
||||||
|
calling the route functions directly.
|
||||||
|
- **Baseline:** 1,659 passed, 63 skipped, 0 failed. Every commit keeps 0 failed. Read the
|
||||||
|
summary line, not just the exit code.
|
||||||
|
- That baseline needs the main checkout's git-ignored fixtures in the worktree. They were
|
||||||
|
copied on 2026-11-13; without them, 13 `idf`/`save_shape` tests fail.
|
||||||
|
- If they are missing: `rsync -a --ignore-existing ~/seismo-relay/tests/fixtures/ tests/fixtures/`
|
||||||
|
- **The codec library stays pure:** `minimateplus/` never imports `sfm`, never touches a DB,
|
||||||
|
and does no I/O beyond reading a path it was given.
|
||||||
|
- **The checksum:** CRC-16/AUG-CCITT (poly `0x1021`, init `0x1D0F`, no reflection), over
|
||||||
|
`record[0:288]`, stored little-endian at `record[290:292]`. Bytes `[288:290]` are `00 00`.
|
||||||
|
- **The format:**
|
||||||
|
- prefix `10 00 01 80 00 00 "Instantel\0" 07 2c` (18 bytes), then whole 292-byte records
|
||||||
|
- each record starts with its length `22 01` (290 LE)
|
||||||
|
- id `0e a0` is the header record (always first), `0e 80` a log record
|
||||||
|
- year little-endian in every timestamp
|
||||||
|
- **Time:** unit times are naive `datetime`s on the unit's own clock, stored with
|
||||||
|
`.isoformat()` and never converted. File times are aware UTC `datetime`s.
|
||||||
|
- **Fixtures:** `tests/fixtures/` is git-ignored, so new fixtures need `git add -f`.
|
||||||
|
- **Docs:** `docs/instantel_protocol_reference.md` is LF (enforced by `tests/test_line_endings.py`).
|
||||||
|
- **Commit messages** end with:
|
||||||
|
```
|
||||||
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
||||||
|
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
|
||||||
|
```
|
||||||
|
|
||||||
|
## Review Focus
|
||||||
|
|
||||||
|
1. **An empty file whose name prefix matches two known serials** (`BE11010304.MLG` with both
|
||||||
|
`BE1101` and `BE11010` known) resolves to the longest, `BE11010`. Test: Task 4,
|
||||||
|
`test_empty_file_takes_the_longest_known_serial`.
|
||||||
|
2. **One request with a good file and a corrupted one** stores the good file and refuses the bad
|
||||||
|
one per file. Nothing of the bad one lands: no row, no file in the store. Test: Task 6,
|
||||||
|
`test_import_route_stores_good_file_and_refuses_bad_one`.
|
||||||
|
3. **The same open "monitoring started" record arriving in a second file** (a re-forward, or a
|
||||||
|
cable download) is stored once, despite its NULL stop. Test: Task 3,
|
||||||
|
`test_open_record_is_stored_once`.
|
||||||
|
4. **A serial with no `.MLG` data** gets an empty timeline and `unknown`, never a 500 or a
|
||||||
|
"not monitoring". Test: Task 6, `test_timeline_routes_for_unknown_serial`.
|
||||||
|
5. **`at` exactly on a session's start or stop, or inside the repeated hour after the
|
||||||
|
clock step back,** gives a defined answer: boundaries count as monitoring, and the repeated
|
||||||
|
hour is `ambiguous`. Tests: Task 5, `test_monitoring_at_boundaries_are_inclusive`,
|
||||||
|
`test_clock_step_back_is_not_a_negative_gap`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Task 1: The reader, and one shared CRC
|
||||||
|
|
||||||
|
**Files:**
|
||||||
|
- Create: `minimateplus/crc.py`, `minimateplus/mlg_file.py`, `tests/test_mlg_file.py`
|
||||||
|
- Modify: `minimateplus/models.py` (add `MlgRecord`, `MlgFile` after `MonitorLogEntry`)
|
||||||
|
- Modify: `micromate/setup_block.py:63-69` (`_crc16_aug_ccitt` calls the shared function)
|
||||||
|
- Fixtures: `tests/fixtures/mlg-11-9-26/` (force-added)
|
||||||
|
|
||||||
|
**Interfaces:**
|
||||||
|
- Produces:
|
||||||
|
- `minimateplus.crc.crc16_aug_ccitt(data: bytes) -> int`
|
||||||
|
- `models.MlgRecord`, with fields:
|
||||||
|
- `index: int`: position in the file; 0 is the header record
|
||||||
|
- `start: datetime`, `stop: Optional[datetime]`
|
||||||
|
- `flags: int`, `trigger_source: int`, `serial: str`
|
||||||
|
- `text_raw: bytes`: exactly `record[34:288]`
|
||||||
|
- `event_time: Optional[datetime]`
|
||||||
|
- `text: str`, `trigger_level: Optional[str]`, `description: str`
|
||||||
|
- `crc_ok: bool`
|
||||||
|
- property `is_start` (`flags == 0xFFFF`)
|
||||||
|
- `models.MlgFile`:
|
||||||
|
- fields `serial: Optional[str]`, `records: list[MlgRecord]` (log records only, file order)
|
||||||
|
- properties `empty` (no records and no serial) and `crc_failures -> list[int]` (the indexes)
|
||||||
|
- `mlg_file.MlgFormatError(ValueError)`, `mlg_file.MLG_PREFIX: bytes`,
|
||||||
|
`mlg_file.RECORD_SIZE = 292`
|
||||||
|
- `mlg_file.parse_mlg(data: bytes) -> MlgFile`, `mlg_file.read_mlg(path) -> MlgFile`
|
||||||
|
|
||||||
|
- [ ] **Step 1: Copy the fixtures and force-add them**
|
||||||
|
|
||||||
|
Copy into `tests/fixtures/mlg-11-9-26/` with `cp -p`:
|
||||||
|
- from `~/dl2-archive/mlg/mlg-slice/`: `BE128443065.MLG`, `BE128443067.MLG`,
|
||||||
|
`BE128443068.MLG`, `BE128443155.MLG`, `BE128443156.MLG`, `BE6907750.MLG`, `BE6907751.MLG`
|
||||||
|
- from `~/dl2-archive/mlg/mlg-slice2/`: `BE8081.MLG`, `BE8081321.MLG`
|
||||||
|
- from `~/seismo-relay/example-events/ach-vs-manual/`: `BE11529.MLG`, `BE115292.MLG`
|
||||||
|
- from `~/seismo-relay/example-events/10-26-26/`: `BE94412.MLG`
|
||||||
|
|
||||||
|
Then `git add -f tests/fixtures/mlg-11-9-26`. Expected: 12 files, about 14 KB.
|
||||||
|
|
||||||
|
- [ ] **Step 2: Write the failing tests** in `tests/test_mlg_file.py`
|
||||||
|
|
||||||
|
Use `FIX = Path(__file__).parent / "fixtures" / "mlg-11-9-26"` and
|
||||||
|
`dt = datetime.datetime`.
|
||||||
|
|
||||||
|
```python
|
||||||
|
def test_crc_matches_the_micromate_rule():
|
||||||
|
from micromate.setup_block import _crc16_aug_ccitt
|
||||||
|
assert crc16_aug_ccitt(b"123456789") == _crc16_aug_ccitt(b"123456789") == 0xE5CC
|
||||||
|
|
||||||
|
def test_every_fixture_record_passes_its_checksum():
|
||||||
|
for p in FIX.glob("*.MLG"):
|
||||||
|
assert parse_mlg(p.read_bytes()).crc_failures == [], p.name
|
||||||
|
|
||||||
|
def test_closed_records(): # BE128443065
|
||||||
|
m = read_mlg(FIX / "BE128443065.MLG")
|
||||||
|
assert m.serial == "BE12844" and len(m.records) == 2
|
||||||
|
r1, r2 = m.records
|
||||||
|
assert (r1.index, r1.start, r1.stop, r1.flags, r1.trigger_source) == (
|
||||||
|
1, dt(2026, 9, 5, 18, 47, 26), dt(2026, 9, 5, 20, 0, 0), 0x0010, 0)
|
||||||
|
assert r1.description == "Timer Stop"
|
||||||
|
assert r1.trigger_level == "Geo: 0.0500 in/s Mic: 125.0 dB(L)"
|
||||||
|
assert (r2.start, r2.stop, r2.description) == (
|
||||||
|
dt(2026, 9, 6, 6, 0, 13), dt(2026, 9, 6, 18, 45, 0), "Modem Exit")
|
||||||
|
|
||||||
|
def test_monitoring_started_and_an_event(): # BE128443067
|
||||||
|
m = read_mlg(FIX / "BE128443067.MLG")
|
||||||
|
start, ev = m.records[1], m.records[2]
|
||||||
|
assert start.is_start and start.stop is None and start.description == "Monitoring started"
|
||||||
|
assert start.trigger_level == "Geo: 0.0500 in/s Mic: 125.0 dB(L)"
|
||||||
|
assert (ev.flags, ev.trigger_source, ev.description) == (0x0001, 0x0001, "Event Recorded")
|
||||||
|
assert ev.event_time == dt(2026, 9, 8, 13, 38, 22)
|
||||||
|
assert ev.text == "Geo: 0.0500 in/s Mic: 125.0 dB(L)\rTran: 0.0500 in/s"
|
||||||
|
assert ev.trigger_level == "Geo: 0.0500 in/s Mic: 125.0 dB(L)"
|
||||||
|
|
||||||
|
def test_histogram_with_a_waveform_event(): # BE8081.MLG
|
||||||
|
r = read_mlg(FIX / "BE8081.MLG").records
|
||||||
|
assert (r[1].flags, r[1].trigger_source, r[1].description) == (
|
||||||
|
0x0021, 0x0400, "Event Recorded Modem Exit")
|
||||||
|
assert r[1].trigger_level == "Histogram"
|
||||||
|
assert (r[2].trigger_source, r[2].trigger_level) == (0x0002, "Geo: 0.300 in/s")
|
||||||
|
|
||||||
|
def test_trigger_level_with_or_without_a_space_before_the_colon():
|
||||||
|
a = read_mlg(FIX / "BE11529.MLG").records[0]
|
||||||
|
b = read_mlg(FIX / "BE115292.MLG").records[0]
|
||||||
|
assert a.text == "Trigger Level: Histogram" and b.text == "Trigger Level : Histogram"
|
||||||
|
assert a.trigger_level == b.trigger_level == "Histogram"
|
||||||
|
|
||||||
|
def test_empty_file():
|
||||||
|
m = read_mlg(FIX / "BE6907751.MLG")
|
||||||
|
assert m.serial is None and m.records == [] and m.empty
|
||||||
|
|
||||||
|
def test_a_flipped_byte_fails_only_its_record():
|
||||||
|
data = bytearray((FIX / "BE128443065.MLG").read_bytes())
|
||||||
|
data[18 + 292 + 40] ^= 0xFF # inside record 1's text
|
||||||
|
m = parse_mlg(bytes(data))
|
||||||
|
assert m.crc_failures == [1]
|
||||||
|
assert m.records[0].crc_ok is False and m.records[1].crc_ok is True
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("mangle", [
|
||||||
|
lambda d: d[:-1], # not 18 + 292·n
|
||||||
|
lambda d: b"\x00" + d[1:], # wrong prefix
|
||||||
|
lambda d: d[:18] + b"\x23" + d[19:], # header length field not 290
|
||||||
|
])
|
||||||
|
def test_structure_errors_raise(mangle):
|
||||||
|
with pytest.raises(MlgFormatError):
|
||||||
|
parse_mlg(mangle((FIX / "BE128443065.MLG").read_bytes()))
|
||||||
|
```
|
||||||
|
|
||||||
|
- [ ] **Step 3: Run them to verify they fail**
|
||||||
|
|
||||||
|
Run: `~/seismo-relay/.venv/bin/python -m pytest tests/test_mlg_file.py -q`
|
||||||
|
Expected: collection error, `ModuleNotFoundError: minimateplus.crc`.
|
||||||
|
|
||||||
|
- [ ] **Step 4: Implement**
|
||||||
|
|
||||||
|
**The shared CRC.** `crc16_aug_ccitt` uses the same bitwise loop as `setup_block`. Point
|
||||||
|
`setup_block._crc16_aug_ccitt` at it, keeping the name, since its tests import it.
|
||||||
|
|
||||||
|
**Timestamps.** A timestamp is `day, month, year LE (2 bytes), 0, hour, minute, second`, and
|
||||||
|
all-zero means `None`.
|
||||||
|
|
||||||
|
**`parse_mlg` raises `MlgFormatError`, naming the record, when:**
|
||||||
|
- `len < 18`, or the prefix differs
|
||||||
|
- `(len - 18) % 292 != 0`
|
||||||
|
- any record's length field is not 290
|
||||||
|
- record 0's id is not `0e a0`, or a later record's id is not `0e 80`
|
||||||
|
- a start time cannot be decoded
|
||||||
|
|
||||||
|
**A checksum failure does not raise.** It only sets `crc_ok=False`.
|
||||||
|
|
||||||
|
**The text:**
|
||||||
|
- If `text_raw[0] == 0x08`, then `event_time` is `text_raw[1:9]` and the text starts at
|
||||||
|
`text_raw[9]`.
|
||||||
|
- `text` is the bytes up to the first NUL, latin-1.
|
||||||
|
- `trigger_level` is `text`'s first line (split on `\r`), with a leading `Trigger Level :` or
|
||||||
|
`Trigger Level:` removed and stripped. An empty result is `None`.
|
||||||
|
|
||||||
|
**`description`** is `"Monitoring started"` for `is_start`. Otherwise it is
|
||||||
|
`event_file_io.monitor_log_description(flags).strip()`.
|
||||||
|
|
||||||
|
**The header record** gives `MlgFile.serial` (`record[24:34]`, NUL-stripped ASCII).
|
||||||
|
|
||||||
|
- [ ] **Step 5: Run the tests, then the whole suite**
|
||||||
|
|
||||||
|
Run: `~/seismo-relay/.venv/bin/python -m pytest tests/test_mlg_file.py tests/test_micromate_setup.py -q`
|
||||||
|
Expected: all pass.
|
||||||
|
|
||||||
|
Then the full suite. Expected: `0 failed`.
|
||||||
|
|
||||||
|
- [ ] **Step 6: Commit**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git add minimateplus/crc.py minimateplus/mlg_file.py minimateplus/models.py micromate/setup_block.py tests/test_mlg_file.py
|
||||||
|
git commit -m "feat(mlg): read Blastware .MLG files, every record's checksum verified"
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Task 2: The writer, and the old MLG code retired
|
||||||
|
|
||||||
|
**Files:**
|
||||||
|
- Modify: `minimateplus/mlg_file.py` (add the writer)
|
||||||
|
- Modify: `minimateplus/blastware_file.py`:
|
||||||
|
- delete `_build_mlg_header`, `_build_mlg_record`, the old `write_mlg`, the `read_mlg` stub,
|
||||||
|
`_MLG_*` and `MLG_FLAGS_*`
|
||||||
|
- the module docstring's MLG sections become one line pointing at `minimateplus/mlg_file.py`
|
||||||
|
- ⚠ **Do not re-export from `blastware_file`.** `event_file_io` imports `blastware_file`
|
||||||
|
and `mlg_file` imports `event_file_io`, so a re-export makes an import cycle. Nothing outside
|
||||||
|
`blastware_file.py` uses the old names (checked 2026-11-13).
|
||||||
|
- Test: `tests/test_mlg_file.py`
|
||||||
|
|
||||||
|
**Interfaces:**
|
||||||
|
- Consumes: `MlgFile`, `MlgRecord` (Task 1)
|
||||||
|
- Produces:
|
||||||
|
- `mlg_file.mlg_bytes(mlg: MlgFile) -> bytes`
|
||||||
|
- `mlg_file.write_mlg(mlg: MlgFile, path) -> None`
|
||||||
|
|
||||||
|
- [ ] **Step 1: Write the failing tests**
|
||||||
|
|
||||||
|
```python
|
||||||
|
@pytest.mark.parametrize("name", sorted(p.name for p in FIX.glob("*.MLG")))
|
||||||
|
def test_rebuilds_every_fixture_byte_for_byte(name):
|
||||||
|
raw = (FIX / name).read_bytes()
|
||||||
|
assert mlg_bytes(parse_mlg(raw)) == raw
|
||||||
|
|
||||||
|
def test_old_mlg_code_is_gone():
|
||||||
|
import minimateplus.blastware_file as bw
|
||||||
|
assert not hasattr(bw, "read_mlg") and not hasattr(bw, "MLG_FLAGS_TRIGGER")
|
||||||
|
```
|
||||||
|
|
||||||
|
- [ ] **Step 2: Run them to verify they fail** (`ImportError: mlg_bytes`)
|
||||||
|
|
||||||
|
- [ ] **Step 3: Implement `mlg_bytes`**
|
||||||
|
|
||||||
|
Write the prefix, then for a non-empty file the header record:
|
||||||
|
- length, id `0e a0`, zeros, the serial at `[24:34]`, zeros, then the CRC
|
||||||
|
|
||||||
|
Every other byte of the header record is zero on all 1,273 DL2 files (measured).
|
||||||
|
|
||||||
|
Then each log record, from its fields:
|
||||||
|
- length, id `0e 80`, both times, flags and source LE, the serial
|
||||||
|
- `text_raw`, then `00 00`, then the CRC
|
||||||
|
|
||||||
|
An empty `MlgFile` is the prefix alone. Confirm nothing else imports the deleted names:
|
||||||
|
`grep -rn "MLG_FLAGS_\|_build_mlg\|_MLG_" --include=*.py .`
|
||||||
|
|
||||||
|
- [ ] **Step 4: Run the tests and the full suite.** Expected: 12 rebuilds pass; `0 failed`.
|
||||||
|
|
||||||
|
- [ ] **Step 5: Commit**
|
||||||
|
|
||||||
|
`git commit -m "feat(mlg): write .MLG files as Blastware does; retire the old writer"`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Task 3: Storage
|
||||||
|
|
||||||
|
**Files:**
|
||||||
|
- Modify: `sfm/database.py`: the two tables appended to `_SCHEMA`, and the methods below.
|
||||||
|
- The docstring's table list gains both tables.
|
||||||
|
- No migration: `CREATE … IF NOT EXISTS` runs on every start.
|
||||||
|
- Modify: `sfm/waveform_store.py`: add `save_mlg`
|
||||||
|
- Test: `tests/test_mlg_storage.py`
|
||||||
|
|
||||||
|
**Interfaces:**
|
||||||
|
- Consumes: `MlgRecord` (Task 1)
|
||||||
|
- Produces:
|
||||||
|
- `WaveformStore.save_mlg(serial: Optional[str], file_name: str, data: bytes) -> str`.
|
||||||
|
- Writes `<root>/<serial or "_unresolved">/mlg/<file_name>` and returns that path
|
||||||
|
relative to the root (posix).
|
||||||
|
- If that path already holds different bytes, it uses `<stem>.<sha256[:8]><suffix>`.
|
||||||
|
- If it holds the same bytes, it reuses the path.
|
||||||
|
- `SeismoDb.mlg_file_exists(file_name: str, sha256: str) -> bool`
|
||||||
|
- `SeismoDb.insert_mlg(*, serial, file_name, sha256, size, empty, call_in, file_mtime, stored_path, records) -> tuple[Optional[str], int, int]`
|
||||||
|
- One transaction; returns `(file_id, inserted, skipped)`.
|
||||||
|
- Returns `(None, 0, 0)` when `(file_name, sha256)` already exists.
|
||||||
|
- `SeismoDb.query_mlg_records(serial: str, from_dt=None, to_dt=None) -> list[dict]`:
|
||||||
|
- ascending by `start_time`, then `seq`
|
||||||
|
- keys: `id, serial, start_time, stop_time, flags, trigger_source, text, trigger_level,
|
||||||
|
event_time, file_id, seq`
|
||||||
|
- `SeismoDb.query_mlg_files(serial: str) -> list[dict]`:
|
||||||
|
- ascending by `COALESCE(file_mtime, received_at)`
|
||||||
|
- keys: `id, serial, file_name, sha256, size, record_count, empty, call_in, file_mtime,
|
||||||
|
received_at, stored_path`
|
||||||
|
- `SeismoDb.get_mlg_file(file_id: str) -> Optional[dict]`
|
||||||
|
- `SeismoDb.known_serials() -> set[str]`: distinct non-null serials from `events`,
|
||||||
|
`mlg_files` and `mlg_records`
|
||||||
|
|
||||||
|
Schema:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
CREATE TABLE IF NOT EXISTS mlg_files (
|
||||||
|
id TEXT PRIMARY KEY, serial TEXT, file_name TEXT NOT NULL, sha256 TEXT NOT NULL,
|
||||||
|
size INTEGER NOT NULL, record_count INTEGER NOT NULL, empty INTEGER NOT NULL,
|
||||||
|
call_in INTEGER NOT NULL DEFAULT 1, file_mtime TEXT,
|
||||||
|
received_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
|
||||||
|
stored_path TEXT, UNIQUE(file_name, sha256));
|
||||||
|
CREATE TABLE IF NOT EXISTS mlg_records (
|
||||||
|
id TEXT PRIMARY KEY, serial TEXT NOT NULL, start_time TEXT NOT NULL, stop_time TEXT,
|
||||||
|
flags INTEGER NOT NULL, trigger_source INTEGER NOT NULL, text TEXT, trigger_level TEXT,
|
||||||
|
event_time TEXT, file_id TEXT NOT NULL REFERENCES mlg_files(id), seq INTEGER NOT NULL);
|
||||||
|
CREATE UNIQUE INDEX IF NOT EXISTS ux_mlg_records_identity
|
||||||
|
ON mlg_records(serial, start_time, COALESCE(stop_time, ''), flags, trigger_source);
|
||||||
|
CREATE INDEX IF NOT EXISTS idx_mlg_files_serial ON mlg_files(serial);
|
||||||
|
```
|
||||||
|
|
||||||
|
- [ ] **Step 1: Write the failing tests**
|
||||||
|
- `test_insert_and_query_round_trip`: insert BE128443067's records; query returns 3 rows in
|
||||||
|
start order, with the open record's `stop_time` None.
|
||||||
|
- `test_same_file_twice_is_a_duplicate`: the second `insert_mlg` returns `(None, 0, 0)` and
|
||||||
|
there is still one file row.
|
||||||
|
- `test_open_record_is_stored_once`: insert the same `MlgFile` under two names (as a cable
|
||||||
|
download would arrive). The second returns `inserted == 0, skipped == 3`.
|
||||||
|
- `test_records_differing_only_in_text_are_the_same_record`: `BE11529.MLG`, then
|
||||||
|
`BE115292.MLG`. The second is `(id, 0, 3)`.
|
||||||
|
- `test_known_serials`, and `test_save_mlg_keeps_both_when_names_collide`: same name,
|
||||||
|
different bytes, two paths.
|
||||||
|
|
||||||
|
- [ ] **Step 2: Run them to verify they fail** (`AttributeError: insert_mlg`)
|
||||||
|
|
||||||
|
- [ ] **Step 3: Implement** the schema and the methods above. `record_count` is
|
||||||
|
`len(records)`.
|
||||||
|
|
||||||
|
- [ ] **Step 4: Run the tests and the full suite.** Expected: pass; `0 failed`.
|
||||||
|
|
||||||
|
- [ ] **Step 5: Commit**
|
||||||
|
|
||||||
|
`git commit -m "feat(mlg): store .MLG files and records, each record once"`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Task 4: Ingest
|
||||||
|
|
||||||
|
**Files:**
|
||||||
|
- Create: `sfm/mlg_ingest.py`, `tests/test_mlg_ingest.py`
|
||||||
|
|
||||||
|
**Interfaces:**
|
||||||
|
- Consumes: `parse_mlg`, `MlgFormatError` (Task 1); `insert_mlg`, `mlg_file_exists`,
|
||||||
|
`known_serials`, `save_mlg` (Task 3)
|
||||||
|
- Produces:
|
||||||
|
- `resolve_serial(file_name: str, header_serial: Optional[str], hint: Optional[str], known: set[str]) -> Optional[str]`
|
||||||
|
- `ingest_mlg(db, store, file_name: str, data: bytes, *, serial_hint=None, file_mtime: Optional[datetime]=None, call_in: bool=True) -> dict`
|
||||||
|
|
||||||
|
Keys: `filename, status ("ok" | "duplicate" | "error"), detail, serial, serial_unresolved,
|
||||||
|
empty, records, inserted, skipped, file_id`.
|
||||||
|
|
||||||
|
**Rules:**
|
||||||
|
- **Serial:** the header serial wins. Otherwise the hint. Otherwise the longest known serial
|
||||||
|
that the name starts with (case-insensitive), as long as only digits follow it before
|
||||||
|
`.MLG`. Otherwise `None`.
|
||||||
|
- **Order of work:**
|
||||||
|
1. parse
|
||||||
|
2. a `MlgFormatError`, or any checksum failure, is `status "error"`, with `detail` naming
|
||||||
|
the record (e.g. `"record 1 fails its checksum"`); nothing is written
|
||||||
|
3. `mlg_file_exists` gives `"duplicate"`
|
||||||
|
4. `save_mlg`
|
||||||
|
5. `insert_mlg`
|
||||||
|
|
||||||
|
- [ ] **Step 1: Write the failing tests** (a tmp `SeismoDb` and `WaveformStore`, as
|
||||||
|
`tests/test_db_snapshot_endpoints.py::_client` builds them)
|
||||||
|
- `test_ingest_ok`: BE128443067 gives `status "ok"`, serial `BE12844`, `records 3`,
|
||||||
|
`inserted 3`. The file exists in the store under `BE12844/mlg/`.
|
||||||
|
- `test_ingest_twice_is_duplicate`
|
||||||
|
- `test_corrupted_file_stores_nothing`: flip byte `18+292+40`. Expect `"error"`, `"record 1"`
|
||||||
|
in `detail`, no `mlg_files` row, and no `mlg/` directory in the store.
|
||||||
|
- `test_truncated_file_is_an_error`
|
||||||
|
- `test_empty_file_takes_known_serial`: ingest `BE6907750` then `BE6907751`. The second is
|
||||||
|
`serial "BE6907"`, `empty True`.
|
||||||
|
- `test_empty_file_without_known_serial_is_unresolved`: serial `None`,
|
||||||
|
`serial_unresolved True`, stored under `_unresolved/mlg/`.
|
||||||
|
- `test_empty_file_takes_the_longest_known_serial`:
|
||||||
|
- `resolve_serial("BE11010304.MLG", None, None, {"BE1101", "BE11010"}) == "BE11010"`
|
||||||
|
- `resolve_serial("XY123.MLG", None, None, {"BE1101"}) is None`
|
||||||
|
- `resolve_serial("BE6907751.MLG", "BE12844", "BE6907", {"BE6907"}) == "BE12844"` (the
|
||||||
|
header wins)
|
||||||
|
- `test_file_mtime_and_call_in_are_stored`
|
||||||
|
|
||||||
|
- [ ] **Step 2: Run them to verify they fail**
|
||||||
|
- [ ] **Step 3: Implement `sfm/mlg_ingest.py`**
|
||||||
|
- [ ] **Step 4: Run the tests and the full suite.** Expected: pass; `0 failed`.
|
||||||
|
- [ ] **Step 5: Commit**
|
||||||
|
|
||||||
|
`git commit -m "feat(mlg): ingest one .MLG: verify, resolve the serial, keep the original"`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Task 5: The timeline
|
||||||
|
|
||||||
|
**Files:**
|
||||||
|
- Create: `sfm/mlg_timeline.py`, `tests/test_mlg_timeline.py`
|
||||||
|
|
||||||
|
**Interfaces:**
|
||||||
|
- Consumes: rows from `query_mlg_records` and `query_mlg_files` (Task 3)
|
||||||
|
- Produces:
|
||||||
|
- `build_timeline(records: list[dict], files: list[dict]) -> dict`, with keys `sessions`,
|
||||||
|
`gaps`, `clock_steps`, `call_ins`. All times are ISO strings.
|
||||||
|
- **a session:** `start, stop, end_after, end_before, ended_by, kind ("histogram" |
|
||||||
|
"monitoring"), trigger_level, running_at_last_report, events`
|
||||||
|
- **an event:** `start, stop, trigger_source, trigger_level, description`
|
||||||
|
- **a gap:** `start, stop, minutes, meaning`
|
||||||
|
- **a clock step:** `previous_stop, next_start, minutes` (negative)
|
||||||
|
- **a call-in:** `kind ("delivered" | "no_file" | "nothing_new"), unit_time, file_time,
|
||||||
|
file_name`
|
||||||
|
- `monitoring_at(timeline: dict, at: datetime) -> dict`, with keys `status ("monitoring" |
|
||||||
|
"not_monitoring" | "unknown"), ambiguous, sessions, gap, trigger_level, reason`
|
||||||
|
|
||||||
|
**Rules.** These are the spec's §4 rules, made exact.
|
||||||
|
|
||||||
|
- **Sort:** records by `(start_time, 0 if flags == 0xFFFF else 1, seq)`.
|
||||||
|
- **Record kinds:**
|
||||||
|
- **start:** `flags == 0xFFFF`
|
||||||
|
- **histogram:** `flags & 1` and `trigger_source == 0x0400`
|
||||||
|
- **event:** `flags & 1` and any other non-zero source
|
||||||
|
- **closed:** everything else
|
||||||
|
- **Building sessions, walking the sorted records:**
|
||||||
|
- **A start record opens a pending session.** Close any pending one first, with
|
||||||
|
`end_after` = its last event's stop (or its own start) and `end_before` = this start.
|
||||||
|
- **A histogram record joins the pending session** when its start is ≤ 2 s after the pending
|
||||||
|
start, giving the session `stop` and `kind "histogram"`. Otherwise it is a session of its
|
||||||
|
own.
|
||||||
|
- **An event record:**
|
||||||
|
- joins the last session if its start lies within that session's `[start, stop]`
|
||||||
|
- otherwise it joins the pending session
|
||||||
|
- an event carrying an end bit closes a pending (non-histogram) session at its stop
|
||||||
|
- with no session to join, it opens one at its own start
|
||||||
|
- **A closed record** first closes any pending session (as above, `end_before` = its start),
|
||||||
|
then is a session `[start, stop]`.
|
||||||
|
- **A session still pending at the end** has `running_at_last_report True` and
|
||||||
|
`end_after` = its last event's stop, or its start.
|
||||||
|
- **`ended_by`** is `monitor_log_description(flags & ~1).strip()` of the record that set
|
||||||
|
`stop`, or `None`. `trigger_level` is the start record's, else the stop record's.
|
||||||
|
- **Gaps:** from a session's end (`stop`, else `end_after`) to the next session's start.
|
||||||
|
- If the next start is earlier than that end, it is a clock step, not a gap.
|
||||||
|
- The meaning comes from `ended_by`:
|
||||||
|
- Modem Exit: "call-in"
|
||||||
|
- Timer Stop: "scheduled off"
|
||||||
|
- Battery Low Exit: "lost power"
|
||||||
|
- Keyboard Exit and Remote Exit: "stopped by a person"
|
||||||
|
- Memory Full Exit: "memory full"
|
||||||
|
- anything else: "unknown"
|
||||||
|
- **Call-ins**, per file in `query_mlg_files` order (`file_time` = `file_mtime`, else
|
||||||
|
`received_at`):
|
||||||
|
- **An empty file** gives `nothing_new`.
|
||||||
|
- **A `call_in` file with records** gives `delivered`, with `unit_time` = the stop of the
|
||||||
|
file's last record (by `seq`). Each Modem Exit (`flags & 0x20`, not a start) that is not
|
||||||
|
the file's last record gives `no_file`, with `unit_time` = its stop and `file_time` None.
|
||||||
|
- **Non-call-in files** give nothing.
|
||||||
|
- **`monitoring_at`:**
|
||||||
|
- **monitoring:** `start ≤ at ≤ stop`, or `≤ end_after` when the stop is unknown. Two or more
|
||||||
|
matches set `ambiguous True`.
|
||||||
|
- **unknown:** inside an unknown end window, or after `end_after` of a session running at the
|
||||||
|
last report.
|
||||||
|
- **not_monitoring:** inside a gap, with the gap.
|
||||||
|
- **unknown:** anything else, including no data.
|
||||||
|
|
||||||
|
- [ ] **Step 1: Write the failing tests.** Ingest fixtures into a tmp DB with explicit
|
||||||
|
`file_mtime` values, then call `build_timeline(db.query_mlg_records(s), db.query_mlg_files(s))`.
|
||||||
|
- `test_sessions_gaps_and_an_event_session` (BE128443067 + 068):
|
||||||
|
- three sessions: `09-07 18:47:27 → 20:00:00 "Timer Stop"`; `09-08 06:00:13`, stop None,
|
||||||
|
`end_after 13:38:25`, `end_before 13:41:16`, 1 event; `13:41:16 → 18:45:00 "Modem Exit"`
|
||||||
|
- gaps: `"scheduled off"`, `minutes ≈ 600.217`; then `"unknown"`, `≈ 2.85`
|
||||||
|
- `test_monitoring_at`, on the same data:
|
||||||
|
- `09-08 10:00` is `monitoring`, trigger level `"Geo: 0.0500 in/s Mic: 125.0 dB(L)"`
|
||||||
|
- `09-08 13:40:00` is `unknown`
|
||||||
|
- `09-07 23:00` is `not_monitoring` with meaning `"scheduled off"`
|
||||||
|
- `2027-01-01` is `unknown`
|
||||||
|
- `test_monitoring_at_boundaries_are_inclusive`: `09-07 18:47:27` and `09-07 20:00:00` are
|
||||||
|
both `monitoring`.
|
||||||
|
- `test_clock_step_back_is_not_a_negative_gap` (BE128443155 + 156):
|
||||||
|
- no gap with negative minutes
|
||||||
|
- one clock step: `previous_stop 2026-11-01T18:45:00`, `next_start 2026-11-01T17:47:25`,
|
||||||
|
`minutes ≈ -57.58`
|
||||||
|
- `monitoring_at(11-01 18:00)` is `monitoring`, `ambiguous True`, 2 sessions
|
||||||
|
- `test_weekend_battery_outage_and_missed_calls` (BE8081321 alone):
|
||||||
|
- sessions start at `04-12 17:17:59` (histogram, from the start record),
|
||||||
|
`04-12 18:38:14`, `04-13 07:05:15` ("Battery Low Exit") and `04-15 12:47:05`
|
||||||
|
- the gap `04-13 10:47:15 → 04-15 12:47:05` is `"lost power"`, `minutes ≈ 2999.83`
|
||||||
|
- two `"call-in"` gaps of `≈ 5.23`
|
||||||
|
- call-ins: `no_file` at `2019-04-12T18:33:00`, `no_file` at `2019-04-13T07:00:01`,
|
||||||
|
`delivered` at `2019-04-15T17:15:00`, with `file_name "BE8081321.MLG"`
|
||||||
|
- `monitoring_at(2019-04-14 12:00)` is `not_monitoring`, `"lost power"`
|
||||||
|
- `test_histogram_session_keeps_its_waveform_event` (BE8081.MLG):
|
||||||
|
- one session `2018-02-16 15:15:31 → 15:15:49`, `kind "histogram"`,
|
||||||
|
`trigger_level "Histogram"`
|
||||||
|
- one event with `trigger_source 2` and `trigger_level "Geo: 0.300 in/s"`
|
||||||
|
- `test_event_with_an_end_bit_inside_a_histogram` (BE94412):
|
||||||
|
- the histogram session `16:06:34 → 16:07:21` keeps its stop and `"Keyboard Exit"`
|
||||||
|
- it holds the Memory Full event
|
||||||
|
- the `17:00:36` histogram is a session of its own
|
||||||
|
- `test_call_in_kinds` (BE6907750 + 751): `no_file` at `2026-08-22T18:30:00`, `delivered` at
|
||||||
|
`2026-08-23T18:30:00`, then `nothing_new`.
|
||||||
|
|
||||||
|
- [ ] **Step 2: Run them to verify they fail**
|
||||||
|
- [ ] **Step 3: Implement `sfm/mlg_timeline.py`** (pure: no DB, no I/O)
|
||||||
|
- [ ] **Step 4: Run the tests and the full suite.** Expected: pass; `0 failed`.
|
||||||
|
- [ ] **Step 5: Commit**
|
||||||
|
|
||||||
|
`git commit -m "feat(mlg): each unit's monitoring timeline, and was it monitoring at T"`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Task 6: Routes
|
||||||
|
|
||||||
|
**Files:**
|
||||||
|
- Modify: `sfm/server.py`: the routes go after `db_import_idf_file`
|
||||||
|
- Create: `tests/test_mlg_routes.py`
|
||||||
|
|
||||||
|
**Interfaces:**
|
||||||
|
- Consumes: `ingest_mlg` (Task 4); `build_timeline`, `monitoring_at` (Task 5); Task 3's queries
|
||||||
|
- Produces:
|
||||||
|
- `POST /db/import/mlg_file` → `db_import_mlg_file(files: list[UploadFile] = File(...), serial: Optional[str] = Query(None), call_in: bool = Query(True), mtimes: Optional[str] = Form(None))`.
|
||||||
|
`mtimes` is JSON `{filename: unix_seconds_utc}`. Returns `{"count", "results": [ingest
|
||||||
|
dicts]}`.
|
||||||
|
- `GET /db/units/{serial}/timeline?from_dt=&to_dt=` → `db_unit_timeline(...)`: the full
|
||||||
|
timeline, with sessions, gaps and call-ins filtered to those overlapping the window.
|
||||||
|
- `GET /db/units/{serial}/monitoring_at?at=` → `db_unit_monitoring_at(...)`
|
||||||
|
- `GET /db/mlg_records?serial=&from_dt=&to_dt=` → `db_mlg_records(...)`
|
||||||
|
- `GET /db/mlg_files/{file_id}` → `db_mlg_file(...)`: the original bytes as a `FileResponse`
|
||||||
|
with the original `file_name`; 404 if unknown.
|
||||||
|
|
||||||
|
- [ ] **Step 1: Write the failing tests.** Set up as `_client` does (monkeypatch `srv._db` and
|
||||||
|
`srv._store`). Call the route functions directly: `asyncio.run(...)` for the import, with
|
||||||
|
`UploadFile(file=io.BytesIO(data), filename=name)`.
|
||||||
|
- `test_import_route_stores_good_file_and_refuses_bad_one`:
|
||||||
|
- two files, BE128443065 and a corrupted copy named `BE128443099.MLG`
|
||||||
|
- results: `["ok", "error"]`
|
||||||
|
- one `mlg_files` row; only the good file under the store's `mlg/`
|
||||||
|
- `test_import_route_reads_mtimes`: `mtimes='{"BE128443065.MLG": 1788734760}'` stores
|
||||||
|
`file_mtime` `2026-09-06T22:46:00+00:00`.
|
||||||
|
- `test_timeline_and_monitoring_at_routes`, with BE8081321 imported: the timeline has 4
|
||||||
|
sessions, and `monitoring_at` at `2019-04-14T12:00:00` is `not_monitoring`.
|
||||||
|
- `test_timeline_routes_for_unknown_serial`: `BE0000` gives empty `sessions`, `gaps` and
|
||||||
|
`call_ins`, and `monitoring_at` is `unknown`.
|
||||||
|
- `test_mlg_file_route_returns_original_bytes`, and a 404 for an unknown id.
|
||||||
|
|
||||||
|
- [ ] **Step 2: Run them to verify they fail**
|
||||||
|
- [ ] **Step 3: Implement the routes.** They stay thin: parse the query, call Tasks 3–5.
|
||||||
|
- [ ] **Step 4: Run the tests and the full suite.** Expected: pass; `0 failed`.
|
||||||
|
- [ ] **Step 5: Commit**
|
||||||
|
|
||||||
|
`git commit -m "feat(mlg): /db routes: import .MLG, a unit's timeline, monitoring at T"`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Task 7: Bulk import and the cross-check
|
||||||
|
|
||||||
|
**Files:**
|
||||||
|
- Create: `scripts/import_mlg_dir.py`, `scratch/check_mlg_vs_events.py`,
|
||||||
|
`tests/test_import_mlg_dir.py`
|
||||||
|
|
||||||
|
**Interfaces:**
|
||||||
|
- Consumes: `ingest_mlg` (Task 4), `parse_mlg` (Task 1), `crc16_aug_ccitt` (Task 1)
|
||||||
|
- Produces:
|
||||||
|
- **`scripts/import_mlg_dir.py <dir> --db-path P --store-root S [--dry-run] [--not-call-in]`**
|
||||||
|
- `main(argv) -> int`, following `scripts/backfill_event_shape.py`
|
||||||
|
- walks `*.MLG` (case-insensitive) recursively
|
||||||
|
- **two passes:** files with records first, then the empty ones, each oldest file time
|
||||||
|
first. Every unit's serial is then known before its empty files arrive, whatever the
|
||||||
|
folder order.
|
||||||
|
- `file_mtime` from `os.stat` as UTC
|
||||||
|
- prints counts: files, ok, duplicate, error, empty, unresolved, inserted, skipped
|
||||||
|
- dry run: parse and checksums only, nothing written
|
||||||
|
- **`scratch/check_mlg_vs_events.py <mlg dir> <event dir>`**
|
||||||
|
- matches every non-start record with the Event Recorded bit to an event file by
|
||||||
|
`(serial, stop, flag word, trigger source)`
|
||||||
|
- an event file's serial number comes from its name, via
|
||||||
|
`sfm.waveform_store._serial_number_from_bw_filename`, compared with the MLG serial's
|
||||||
|
digits
|
||||||
|
- only event files inside each serial's MLG period count (its first record's start to its
|
||||||
|
last record's stop). DL2 holds years of event files from before the `.MLG`s.
|
||||||
|
- reads each event file's footer straight from its last 28 bytes: `00 1a 0e 08`, both times
|
||||||
|
with a big-endian year, flag word and source BE. It checks the footer's CRC with
|
||||||
|
`crc16_aug_ccitt` too.
|
||||||
|
- prints matched / record-only / file-only per serial, with up to 5 examples each
|
||||||
|
|
||||||
|
- [ ] **Step 1: Write the failing test.** `test_import_dir_counts`:
|
||||||
|
- copy the fixture dir to `tmp_path`
|
||||||
|
- the dry run prints `files 12`, writes no DB file and returns 0
|
||||||
|
- a real run imports 12 files with 0 errors, and a second run reports 12 duplicates
|
||||||
|
- [ ] **Step 2: Run it to verify it fails**
|
||||||
|
- [ ] **Step 3: Implement both tools**
|
||||||
|
- [ ] **Step 4: Run the tests and the full suite.** Expected: pass; `0 failed`.
|
||||||
|
- [ ] **Step 5: Run both tools on the real data, on the dev box only**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
~/seismo-relay/.venv/bin/python scripts/import_mlg_dir.py ~/dl2-archive/mlg --db-path /tmp/claude-1000/mlg-check.db --store-root /tmp/claude-1000/mlg-check-store
|
||||||
|
~/seismo-relay/.venv/bin/python scratch/check_mlg_vs_events.py ~/dl2-archive/mlg ~/dl2-archive/files
|
||||||
|
```
|
||||||
|
|
||||||
|
Expected:
|
||||||
|
- 1,273 files, 0 errors, 231 empty, 0 unresolved
|
||||||
|
- 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
|
||||||
|
|
||||||
|
Put the numbers in the commit message.
|
||||||
|
|
||||||
|
- [ ] **Step 6: Commit**
|
||||||
|
|
||||||
|
`git commit -m "feat(mlg): bulk import, and a cross-check against the event files"`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Task 8: Documentation
|
||||||
|
|
||||||
|
**Files:**
|
||||||
|
- Modify: `docs/instantel_protocol_reference.md`:
|
||||||
|
- D.4 to D.4.3 rewritten from the spec's "What was measured", each claim graded
|
||||||
|
- the old D.4.2 table kept under a ⚠ RETRACTED banner (its CRC position, BE timestamps
|
||||||
|
and flag table)
|
||||||
|
- a row in the Changelog table at the top
|
||||||
|
- Modify: `CLAUDE.md`:
|
||||||
|
- the "SFM REST API" `/db` list gains the five routes
|
||||||
|
- one line under "Where things stand" pointing at the spec
|
||||||
|
- Modify: `docs/superpowers/specs/2026-11-09-mlg-unit-timeline-design.md` §8: the footer CRC
|
||||||
|
note becomes "recorded on dev, `8544e9c`"
|
||||||
|
|
||||||
|
- [ ] **Step 1: Edit the three files**
|
||||||
|
- [ ] **Step 2: Run `tests/test_line_endings.py` and the full suite.** Expected: `0 failed`.
|
||||||
|
- [ ] **Step 3: Commit**
|
||||||
|
|
||||||
|
`git commit -m "docs: the .MLG format measured (reference D.4), and the new /db routes"`
|
||||||
@@ -104,17 +104,11 @@ M529LIY6 (example event) using raw_s3_20260403_153508.bin capture):
|
|||||||
DLE strip rule (applied AFTER slicing):
|
DLE strip rule (applied AFTER slicing):
|
||||||
Strip any 0x10 byte that is immediately followed by 0x02, 0x03, or 0x04.
|
Strip any 0x10 byte that is immediately followed by 0x02, 0x03, or 0x04.
|
||||||
This undoes the DLE-escape that S3FrameParser preserves as literal pairs.
|
This undoes the DLE-escape that S3FrameParser preserves as literal pairs.
|
||||||
Applied to frame.data[skip:] + bytes([frame.chk_byte]) together, then
|
|
||||||
conditionally exclude the trailing chk_byte from the output.
|
|
||||||
|
|
||||||
chk_byte absorption:
|
chk_byte absorption (retired 2026-11-06, #58):
|
||||||
When frame.data[-1] == 0x10 AND frame.chk_byte ∈ {0x02, 0x03, 0x04},
|
The escape 0x10 of a checksum sent as `10 02/03/04` used to stay at the end
|
||||||
the last byte of frame.data is the DLE prefix of a split DLE+chk pair.
|
of frame.data, and this builder dropped it here. The parser now drops it,
|
||||||
Including chk_byte in the strip buffer allows the pair to be stripped as
|
so a 0x10 ending frame.data is real data (one A5 chunk in ten ends in one).
|
||||||
a unit. After stripping, the trailing chk_byte is ALWAYS removed — because
|
|
||||||
_strip_inner_frame_dles keeps the byte after the DLE (the chk_byte value),
|
|
||||||
and that value is the checksum, never payload. This applies to all three
|
|
||||||
cases (chk ∈ {0x02, 0x03, 0x04}) identically.
|
|
||||||
|
|
||||||
MLG CRC:
|
MLG CRC:
|
||||||
The algorithm that produces the 2-byte CRC at the start of each MLG record
|
The algorithm that produces the 2-byte CRC at the start of each MLG record
|
||||||
@@ -297,29 +291,16 @@ def _frame_body_bytes(frame: S3Frame, skip: int) -> bytes:
|
|||||||
Extract the waveform body contribution from one A5 S3Frame.
|
Extract the waveform body contribution from one A5 S3Frame.
|
||||||
|
|
||||||
The contribution is frame.data[skip:] with inner-frame DLE pairs stripped
|
The contribution is frame.data[skip:] with inner-frame DLE pairs stripped
|
||||||
per _strip_inner_frame_dles(). The chk_byte is temporarily appended before
|
per _strip_inner_frame_dles().
|
||||||
stripping to handle the split-pair edge case where a DLE at the end of
|
|
||||||
frame.data is paired with chk_byte.
|
|
||||||
|
|
||||||
Split-pair edge case (confirmed for A5[8] of M529LIY6 (example event), 2026-04-21):
|
Until #58 (2026-11-06) an escaped checksum (`10 02/03/04`) left its 0x10 as
|
||||||
|
the last byte of frame.data, and this function dropped it by pairing it with
|
||||||
S3FrameParser appends DLE+XX pairs as two literal bytes when XX ∉ {DLE, ETX}.
|
chk_byte (first seen on A5[8] of M529LIY6, 2026-04-21). The parser drops it
|
||||||
When the LAST occurrence of such a pair straddles the payload/checksum boundary
|
now, so a 0x10 here is data and is kept.
|
||||||
(i.e., DLE is the last byte of raw_payload and XX is the checksum), the parser
|
|
||||||
splits them:
|
|
||||||
- DLE ends up as the last byte of frame.data (frame.data[-1] == 0x10)
|
|
||||||
- XX is stored as frame.chk_byte
|
|
||||||
|
|
||||||
To strip the pair correctly, we reunite the bytes before calling the strip
|
|
||||||
function. Since chk_byte is the checksum (not payload data), it is excluded
|
|
||||||
from the final output regardless of whether it was part of a pair.
|
|
||||||
|
|
||||||
Post-strip chk_byte removal (ALL cases):
|
|
||||||
_strip_inner_frame_dles strips the 0x10 and KEEPS chk_byte in all cases.
|
|
||||||
Chk_byte is always the checksum (not payload), so always strip it off.
|
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
frame: S3Frame with frame.data and frame.chk_byte populated.
|
frame: S3Frame from S3FrameParser (or a store pickle loaded by
|
||||||
|
WaveformStore.load_a5, which converts pre-#58 frames).
|
||||||
skip: Number of leading bytes in frame.data to exclude (frame header).
|
skip: Number of leading bytes in frame.data to exclude (frame header).
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
@@ -327,28 +308,7 @@ def _frame_body_bytes(frame: S3Frame, skip: int) -> bytes:
|
|||||||
"""
|
"""
|
||||||
if skip >= len(frame.data):
|
if skip >= len(frame.data):
|
||||||
return b""
|
return b""
|
||||||
|
return _strip_inner_frame_dles(frame.data[skip:])
|
||||||
relevant = frame.data[skip:]
|
|
||||||
|
|
||||||
# Detect split DLE+chk pair at the frame boundary.
|
|
||||||
has_split_pair = (
|
|
||||||
len(relevant) > 0
|
|
||||||
and relevant[-1] == 0x10
|
|
||||||
and frame.chk_byte in {0x02, 0x03, 0x04}
|
|
||||||
)
|
|
||||||
|
|
||||||
if has_split_pair:
|
|
||||||
# Reunite the split pair so the strip function sees both bytes together.
|
|
||||||
buf = relevant + bytes([frame.chk_byte])
|
|
||||||
stripped = _strip_inner_frame_dles(buf)
|
|
||||||
# _strip_inner_frame_dles strips the DLE (0x10) and KEEPS chk_byte.
|
|
||||||
# chk_byte is the received checksum — never payload — so remove it.
|
|
||||||
# This is correct for all values in {0x02, 0x03, 0x04}.
|
|
||||||
if stripped:
|
|
||||||
stripped = stripped[:-1]
|
|
||||||
return stripped
|
|
||||||
else:
|
|
||||||
return _strip_inner_frame_dles(relevant)
|
|
||||||
|
|
||||||
|
|
||||||
# ── Filename helper ───────────────────────────────────────────────────────────
|
# ── Filename helper ───────────────────────────────────────────────────────────
|
||||||
|
|||||||
@@ -2354,8 +2354,9 @@ def _decode_monitor_status(data: bytes) -> MonitorStatus:
|
|||||||
header, so field offsets below are relative to data[11]).
|
header, so field offsets below are relative to data[11]).
|
||||||
|
|
||||||
NOTE: frame.data has the checksum byte already stripped by S3FrameParser
|
NOTE: frame.data has the checksum byte already stripped by S3FrameParser
|
||||||
(_finalise returns raw_payload[5:] where raw_payload = body[:-1]).
|
(_finalise returns raw_payload[5:], the checksum and, since #58, the 10 of
|
||||||
There is NO trailing checksum byte in section.
|
an escaped checksum removed). There is NO trailing checksum byte in section;
|
||||||
|
before #58 one status reply in 63 kept that 10 and read 419.84 V.
|
||||||
|
|
||||||
Monitoring flag (confirmed 4-8-26/2ndtry, byte diff of all 144 data frames):
|
Monitoring flag (confirmed 4-8-26/2ndtry, byte diff of all 144 data frames):
|
||||||
section[1] == 0x00 → idle
|
section[1] == 0x00 → idle
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ from typing import Callable, Optional, Sequence
|
|||||||
|
|
||||||
from .bw_xml_report import XmlReport
|
from .bw_xml_report import XmlReport
|
||||||
from .event_file_io import (interval_times, _GEO_FS_BY_RANGE, _GEO_INT16_FS, _GEO_NORMAL_FS_INS, _MIC_PSI_PER_COUNT,
|
from .event_file_io import (interval_times, _GEO_FS_BY_RANGE, _GEO_INT16_FS, _GEO_NORMAL_FS_INS, _MIC_PSI_PER_COUNT,
|
||||||
decode_blastware_bytes)
|
decode_blastware_bytes, mic_count_divisor, over_full_scale)
|
||||||
from .histogram_codec import half_period_to_hz
|
from .histogram_codec import half_period_to_hz
|
||||||
from .models import Event
|
from .models import Event
|
||||||
from .waveform_codec import mic_count_to_db
|
from .waveform_codec import mic_count_to_db
|
||||||
@@ -87,6 +87,7 @@ class SfmSide:
|
|||||||
channels: list[str] # channels with decoded data, in Tran/Vert/Long/MicL order
|
channels: list[str] # channels with decoded data, in Tran/Vert/Long/MicL order
|
||||||
counts: dict[str, list[int]] # waveform samples or histogram interval peaks
|
counts: dict[str, list[int]] # waveform samples or histogram interval peaks
|
||||||
geo_ips_per_count: float = GEO_IPS_PER_COUNT # at the event's range, as SFM read it
|
geo_ips_per_count: float = GEO_IPS_PER_COUNT # at the event's range, as SFM read it
|
||||||
|
mic_divisor: int = 1 # mic counts per 0.25 Pa, at the mic's range
|
||||||
# interval column -> SFM's value per interval (a number, or Blastware's word)
|
# interval column -> SFM's value per interval (a number, or Blastware's word)
|
||||||
interval_values: dict[str, list[object]] = field(default_factory=dict)
|
interval_values: dict[str, list[object]] = field(default_factory=dict)
|
||||||
interval_times: Optional[list[str]] = None # each interval's printed time
|
interval_times: Optional[list[str]] = None # each interval's printed time
|
||||||
@@ -157,6 +158,10 @@ def sfm_side(raw: bytes) -> SfmSide:
|
|||||||
("LongZCFreq", pv.long_zc_freq), ("MicLZCFreq", pv.mic_zc_freq)):
|
("LongZCFreq", pv.long_zc_freq), ("MicLZCFreq", pv.mic_zc_freq)):
|
||||||
if hz is not None:
|
if hz is not None:
|
||||||
values[tag] = "<1.0" if hz < 1.0 else hz
|
values[tag] = "<1.0" if hz < 1.0 else hz
|
||||||
|
# Blastware's "Out of Range" line: on every DL2 event whose mic is over
|
||||||
|
# range, and on no other (18 / 18, 2026-11-09).
|
||||||
|
if pv is not None and pv.mic_over_range:
|
||||||
|
values["OORANGE"] = "Out of Range"
|
||||||
# The event's Monitor Log line, from the footer (2026-11-08).
|
# The event's Monitor Log line, from the footer (2026-11-08).
|
||||||
if ev.monitor_log is not None:
|
if ev.monitor_log is not None:
|
||||||
ml = ev.monitor_log
|
ml = ev.monitor_log
|
||||||
@@ -170,7 +175,8 @@ def sfm_side(raw: bytes) -> SfmSide:
|
|||||||
if value is not None:
|
if value is not None:
|
||||||
values[f"{ch}{tag}"] = value
|
values[f"{ch}{tag}"] = value
|
||||||
if counts["MicL"]:
|
if counts["MicL"]:
|
||||||
values["MicLPSPL dB(L)"] = mic_count_to_db(max(abs(c) for c in counts["MicL"]))
|
values["MicLPSPL dB(L)"] = mic_count_to_db(max(abs(c) for c in counts["MicL"])
|
||||||
|
/ mic_count_divisor(ev.mic_range))
|
||||||
values["MicLPSPL psi(L)"] = pv.micl if pv is not None else None
|
values["MicLPSPL psi(L)"] = pv.micl if pv is not None else None
|
||||||
values.update(_setup_values(ev))
|
values.update(_setup_values(ev))
|
||||||
if ev.stop_time is not None:
|
if ev.stop_time is not None:
|
||||||
@@ -183,7 +189,12 @@ def sfm_side(raw: bytes) -> SfmSide:
|
|||||||
for ch, hps in ev.interval_half_periods.items():
|
for ch, hps in ev.interval_half_periods.items():
|
||||||
interval_values[f"{ch} Freq Hz"] = [interval_frequency(h, ev.sample_rate) for h in hps]
|
interval_values[f"{ch} Freq Hz"] = [interval_frequency(h, ev.sample_rate) for h in hps]
|
||||||
if ev.interval_pvs:
|
if ev.interval_pvs:
|
||||||
interval_values["Geo PVS in/s"] = list(ev.interval_pvs)
|
# OORANGE when any geophone passes full scale in that interval: 16 / 16
|
||||||
|
# DL2 cells, and none of 2,862 without one (2026-11-09).
|
||||||
|
geo = [counts[c] for c in _GEO if counts.get(c)]
|
||||||
|
interval_values["Geo PVS in/s"] = [
|
||||||
|
"OORANGE" if any(i < len(g) and over_full_scale(g[i], "Tran") for g in geo) else v
|
||||||
|
for i, v in enumerate(ev.interval_pvs)]
|
||||||
times = None
|
times = None
|
||||||
n = len(counts["Tran"])
|
n = len(counts["Tran"])
|
||||||
if ev.record_type == "Histogram" and ts is not None and ev.histogram_interval_sec and n:
|
if ev.record_type == "Histogram" and ts is not None and ev.histogram_interval_sec and n:
|
||||||
@@ -208,6 +219,7 @@ def sfm_side(raw: bytes) -> SfmSide:
|
|||||||
channels=[ch for ch in _CHANNELS if counts[ch]],
|
channels=[ch for ch in _CHANNELS if counts[ch]],
|
||||||
counts=counts,
|
counts=counts,
|
||||||
geo_ips_per_count=_GEO_FS_BY_RANGE.get(ev.geo_range, _GEO_NORMAL_FS_INS) / _GEO_INT16_FS,
|
geo_ips_per_count=_GEO_FS_BY_RANGE.get(ev.geo_range, _GEO_NORMAL_FS_INS) / _GEO_INT16_FS,
|
||||||
|
mic_divisor=mic_count_divisor(ev.mic_range),
|
||||||
interval_values=interval_values,
|
interval_values=interval_values,
|
||||||
interval_times=times,
|
interval_times=times,
|
||||||
)
|
)
|
||||||
@@ -260,22 +272,49 @@ def _same_text(a: object, b: str) -> bool:
|
|||||||
return " ".join(str(a).split()) == " ".join(b.split())
|
return " ".join(str(a).split()) == " ".join(b.split())
|
||||||
|
|
||||||
|
|
||||||
def _mic_converter(ref: XmlReport) -> Optional[Callable[[int], float]]:
|
def _mic_table_units(ref: XmlReport) -> str:
|
||||||
units = ref.event_units or ""
|
"""The unit a report's mic sample table is printed in. Its cells say so --
|
||||||
|
a mic dB value is never under 60, psi never over 1 -- where the event's
|
||||||
|
Units line need not: S353JTHU.DT0W prints dB under psi (2026-11-09)."""
|
||||||
|
if ref.sample_rows and "MicL" in ref.channels:
|
||||||
|
i, seen = ref.channels.index("MicL"), False
|
||||||
|
for row in ref.sample_rows:
|
||||||
|
p = _printed_number(row[i]) if len(row) == len(ref.channels) else None
|
||||||
|
if p is not None:
|
||||||
|
if abs(p[0]) > 1.0:
|
||||||
|
return "dB(L)"
|
||||||
|
seen = True
|
||||||
|
if seen:
|
||||||
|
return "psi(L)"
|
||||||
|
return ref.event_units or ""
|
||||||
|
|
||||||
|
|
||||||
|
def _mic_converter(ref: XmlReport, sfm: SfmSide) -> Optional[Callable[[int], float]]:
|
||||||
|
units = _mic_table_units(ref)
|
||||||
|
d = sfm.mic_divisor
|
||||||
if "dB(L)" in units:
|
if "dB(L)" in units:
|
||||||
return mic_count_to_db
|
return lambda c: mic_count_to_db(c / d)
|
||||||
if "psi(L)" in units:
|
if "psi(L)" in units:
|
||||||
return lambda c: c * _MIC_PSI_PER_COUNT
|
return lambda c: c * _MIC_PSI_PER_COUNT / d
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
_OVER_RANGE = {"TranPPV": "tran_over_range", "VertPPV": "vert_over_range",
|
||||||
|
"LongPPV": "long_over_range", "PeakVectorSum": "pvs_over_range",
|
||||||
|
"MicLPSPL": "mic_over_range"}
|
||||||
|
|
||||||
|
|
||||||
def _compare_scalar(tag: str, printed: str, sfm: SfmSide, ref: XmlReport) -> FieldResult:
|
def _compare_scalar(tag: str, printed: str, sfm: SfmSide, ref: XmlReport) -> FieldResult:
|
||||||
if not printed.strip() or printed.strip() == "N/A":
|
if not printed.strip() or printed.strip() == "N/A":
|
||||||
return FieldResult(tag, "no_reference", printed, None)
|
return FieldResult(tag, "no_reference", printed, None)
|
||||||
if tag in ("MicLPSPL", "MicTriggerLevel"):
|
if tag in ("MicLPSPL", "MicTriggerLevel"):
|
||||||
# A printed value that states its unit is compared in that unit:
|
# A printed value that states its unit is compared in that unit:
|
||||||
# K441LA17.IN0W's Units say psi(L), its MicTriggerLevel "125.0 dB(L)".
|
# K441LA17.IN0W's Units say psi(L), its MicTriggerLevel "125.0 dB(L)".
|
||||||
units = printed if ("dB(L)" in printed or "psi(L)" in printed) else (ref.event_units or "")
|
# Else the field's own <Units>, then the event's line: 7 DL2 reports
|
||||||
|
# print the mic peak in dB under a psi line, 3 the reverse (2026-11-09).
|
||||||
|
own = ref.units.get(tag) or ""
|
||||||
|
units = (printed if ("dB(L)" in printed or "psi(L)" in printed)
|
||||||
|
else own if ("dB(L)" in own or "psi(L)" in own) else (ref.event_units or ""))
|
||||||
key = (f"{tag} dB(L)" if "dB(L)" in units else
|
key = (f"{tag} dB(L)" if "dB(L)" in units else
|
||||||
f"{tag} psi(L)" if "psi(L)" in units else None)
|
f"{tag} psi(L)" if "psi(L)" in units else None)
|
||||||
value = sfm.values.get(key) if key else None
|
value = sfm.values.get(key) if key else None
|
||||||
@@ -288,8 +327,14 @@ def _compare_scalar(tag: str, printed: str, sfm: SfmSide, ref: XmlReport) -> Fie
|
|||||||
ch = tag[:-len("ZCFreq")].lower()
|
ch = tag[:-len("ZCFreq")].lower()
|
||||||
flag = getattr(sfm.event.peak_values, ("mic" if ch == "micl" else ch) + "_zc_above_range", False)
|
flag = getattr(sfm.event.peak_values, ("mic" if ch == "micl" else ch) + "_zc_above_range", False)
|
||||||
return FieldResult(tag, "match" if flag else "mismatch", printed, str(value))
|
return FieldResult(tag, "match" if flag else "mismatch", printed, str(value))
|
||||||
if printed == "OORANGE":
|
# Over range: SFM agrees with Blastware's OORANGE only by setting its flag,
|
||||||
return FieldResult(tag, "mismatch", printed, str(value))
|
# and a flag against a printed number is a disagreement.
|
||||||
|
over = _OVER_RANGE.get(tag)
|
||||||
|
flagged = bool(over and getattr(sfm.event.peak_values, over, False))
|
||||||
|
if printed == "OORANGE" or flagged:
|
||||||
|
ok = printed == "OORANGE" and flagged
|
||||||
|
return FieldResult(tag, "match" if ok else "mismatch", printed,
|
||||||
|
"OORANGE" if flagged else _render(value, printed))
|
||||||
if isinstance(value, (int, float)) and not isinstance(value, bool) and _printed_number(printed):
|
if isinstance(value, (int, float)) and not isinstance(value, bool) and _printed_number(printed):
|
||||||
ok = matches_printed(float(value), printed)
|
ok = matches_printed(float(value), printed)
|
||||||
else:
|
else:
|
||||||
@@ -324,7 +369,7 @@ def _series_result(field: str, n_bw: int, n_sfm: int, diffs: list[tuple[int, flo
|
|||||||
def _sample_converters(sfm: SfmSide, ref: XmlReport) -> dict[str, Callable[[int], float]]:
|
def _sample_converters(sfm: SfmSide, ref: XmlReport) -> dict[str, Callable[[int], float]]:
|
||||||
k = sfm.geo_ips_per_count
|
k = sfm.geo_ips_per_count
|
||||||
convert: dict[str, Callable[[int], float]] = {ch: (lambda c: c * k) for ch in _GEO}
|
convert: dict[str, Callable[[int], float]] = {ch: (lambda c: c * k) for ch in _GEO}
|
||||||
mic = _mic_converter(ref)
|
mic = _mic_converter(ref, sfm)
|
||||||
if mic is not None:
|
if mic is not None:
|
||||||
convert["MicL"] = mic
|
convert["MicL"] = mic
|
||||||
return convert
|
return convert
|
||||||
@@ -333,12 +378,14 @@ def _sample_converters(sfm: SfmSide, ref: XmlReport) -> dict[str, Callable[[int]
|
|||||||
def _interval_converter(title: str, sfm: SfmSide) -> Optional[Callable[[int], float]]:
|
def _interval_converter(title: str, sfm: SfmSide) -> Optional[Callable[[int], float]]:
|
||||||
"""SFM keeps each interval's peaks; it drops their frequencies and geo PVS."""
|
"""SFM keeps each interval's peaks; it drops their frequencies and geo PVS."""
|
||||||
ch, _, rest = title.partition(" ")
|
ch, _, rest = title.partition(" ")
|
||||||
|
# A peak past full scale is Blastware's OORANGE, in an interval as in the event.
|
||||||
if rest.startswith("Peak") and ch in _GEO:
|
if rest.startswith("Peak") and ch in _GEO:
|
||||||
return lambda c: c * sfm.geo_ips_per_count
|
return lambda c: "OORANGE" if over_full_scale(c, ch) else c * sfm.geo_ips_per_count
|
||||||
|
d = sfm.mic_divisor
|
||||||
if ch == "MicL" and rest == "Peak dB(L)":
|
if ch == "MicL" and rest == "Peak dB(L)":
|
||||||
return mic_count_to_db
|
return lambda c: "OORANGE" if over_full_scale(c, ch) else mic_count_to_db(c / d)
|
||||||
if ch == "MicL" and rest == "Peak psi(L)":
|
if ch == "MicL" and rest == "Peak psi(L)":
|
||||||
return lambda c: c * _MIC_PSI_PER_COUNT
|
return lambda c: "OORANGE" if over_full_scale(c, ch) else c * _MIC_PSI_PER_COUNT / d
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,10 @@ from dataclasses import dataclass
|
|||||||
from typing import Callable
|
from typing import Callable
|
||||||
|
|
||||||
from .bw_xml_report import XmlReport
|
from .bw_xml_report import XmlReport
|
||||||
from .decode_check import FieldResult, SfmSide, _printed_number, series_pairs, matches_printed
|
from .decode_check import (FieldResult, SfmSide, _mic_table_units, _printed_number, series_pairs,
|
||||||
|
matches_printed)
|
||||||
|
from .event_file_io import _MIC_PSI_PER_COUNT
|
||||||
|
from .waveform_codec import mic_count_to_db
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
@@ -45,6 +48,14 @@ def _clamped(printed: str, r: float) -> bool:
|
|||||||
return p is not None and abs(p[0]) >= r - _TOL
|
return p is not None and abs(p[0]) >= r - _TOL
|
||||||
|
|
||||||
|
|
||||||
|
def _differs(v: object, cell: str) -> bool:
|
||||||
|
"""A cell SFM disagrees with. SFM's own word (its OORANGE, since
|
||||||
|
2026-11-09) agrees only when Blastware printed the same word."""
|
||||||
|
if isinstance(v, str):
|
||||||
|
return " ".join(v.split()) != " ".join(cell.split())
|
||||||
|
return not matches_printed(v, cell)
|
||||||
|
|
||||||
|
|
||||||
def _saturation(sfm: SfmSide, ref: XmlReport, res: FieldResult) -> bool:
|
def _saturation(sfm: SfmSide, ref: XmlReport, res: FieldResult) -> bool:
|
||||||
try:
|
try:
|
||||||
r = float(ref.scalars["GeoRange"])
|
r = float(ref.scalars["GeoRange"])
|
||||||
@@ -76,16 +87,15 @@ def _saturation(sfm: SfmSide, ref: XmlReport, res: FieldResult) -> bool:
|
|||||||
peaks = [cols.index(c) for c in ("Tran Peak in/s", "Vert Peak in/s", "Long Peak in/s")
|
peaks = [cols.index(c) for c in ("Tran Peak in/s", "Vert Peak in/s", "Long Peak in/s")
|
||||||
if c in cols]
|
if c in cols]
|
||||||
rows = ref.intervals or []
|
rows = ref.intervals or []
|
||||||
differing = [(j, cell, v) for j, cell, v in got[0]
|
differing = [(j, cell, v) for j, cell, v in got[0] if _differs(v, cell)]
|
||||||
if isinstance(v, str) or not matches_printed(v, cell)]
|
|
||||||
return bool(differing) and all(
|
return bool(differing) and all(
|
||||||
cell.strip() == "OORANGE" and not isinstance(v, str)
|
cell.strip() == "OORANGE" and not isinstance(v, str)
|
||||||
and r - _TOL <= v <= 3 ** 0.5 * r * 1.01
|
and r - _TOL <= v <= 3 ** 0.5 * r * 1.01
|
||||||
and any(_clamped(rows[j][1][p], r) for p in peaks if p < len(rows[j][1]))
|
and any(_clamped(rows[j][1][p], r) for p in peaks if p < len(rows[j][1]))
|
||||||
for j, cell, v in differing)
|
for j, cell, v in differing)
|
||||||
differing = [(cell, v) for _, cell, v in got[0] if not matches_printed(v, cell)]
|
differing = [(cell, v) for _, cell, v in got[0] if _differs(v, cell)]
|
||||||
return bool(differing) and all(
|
return bool(differing) and all(
|
||||||
_clamped(cell, r) and _at_ceiling(v, r)
|
not isinstance(v, str) and _clamped(cell, r) and _at_ceiling(v, r)
|
||||||
and (cell.strip() == "OORANGE" or (v >= 0) == (_printed_number(cell)[0] >= 0))
|
and (cell.strip() == "OORANGE" or (v >= 0) == (_printed_number(cell)[0] >= 0))
|
||||||
for cell, v in differing)
|
for cell, v in differing)
|
||||||
|
|
||||||
@@ -148,5 +158,49 @@ UNITS_IS_A_DISPLAY_PREFERENCE = Carveout(
|
|||||||
applies=_units_is_a_display_preference,
|
applies=_units_is_a_display_preference,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def _other_mic_unit(sfm: SfmSide, units: str):
|
||||||
|
"""SFM's mic value in the unit the report did NOT say, as Blastware renders it."""
|
||||||
|
d = sfm.mic_divisor
|
||||||
|
if "dB(L)" in units:
|
||||||
|
return lambda c: c * _MIC_PSI_PER_COUNT / d
|
||||||
|
if "psi(L)" in units:
|
||||||
|
return lambda c: mic_count_to_db(c / d)
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def _mic_units_mixed(sfm: SfmSide, ref: XmlReport, res: FieldResult) -> bool:
|
||||||
|
"""Every mic cell SFM disagrees with is SFM's own value in the other unit."""
|
||||||
|
counts = sfm.counts.get("MicL") or []
|
||||||
|
if res.field == "MicLPSPL":
|
||||||
|
own = ref.units.get("MicLPSPL") or ""
|
||||||
|
alt = _other_mic_unit(sfm, own if ("dB(L)" in own or "psi(L)" in own) else (ref.event_units or ""))
|
||||||
|
peak = max((abs(c) for c in counts), default=None)
|
||||||
|
return alt is not None and peak is not None and not _differs(alt(peak), res.bw or "")
|
||||||
|
got = series_pairs(sfm, ref, res.field)
|
||||||
|
# An interval column names its own unit; a sample table says it in its cells.
|
||||||
|
units = res.field if res.field.startswith("intervals.") else _mic_table_units(ref)
|
||||||
|
alt = _other_mic_unit(sfm, units)
|
||||||
|
if got is None or got[1] or alt is None:
|
||||||
|
return False
|
||||||
|
differing = [(j, cell) for j, cell, v in got[0] if _differs(v, cell)]
|
||||||
|
return bool(differing) and all(j < len(counts) and not _differs(alt(counts[j]), cell)
|
||||||
|
for j, cell in differing)
|
||||||
|
|
||||||
|
|
||||||
|
MIC_UNITS_MIXED = Carveout(
|
||||||
|
id="mic-units-mixed",
|
||||||
|
fields=("MicLPSPL", "samples.MicL", "intervals.MicL Peak psi(L)", "intervals.MicL Peak dB(L)"),
|
||||||
|
evidence=("Blastware's dB(L) / psi(L) labels do not hold for the mic on every report: 7 DL2 "
|
||||||
|
"reports print the mic peak in dB under a psi line, 3 the reverse, and some mix the "
|
||||||
|
"two inside one column -- K441L9IN.OT0W prints psi '0.000' / '-0.000' for counts of 1 "
|
||||||
|
"to 3 in a dB table, S353JTHU.DT0W psi rows then dB rows. On 19 DL2 events (14 "
|
||||||
|
"sample tables, 5 peaks) every mic cell SFM disagrees with is SFM's own value in the "
|
||||||
|
"other unit; a cell matching neither is still a mismatch. A histogram row can print "
|
||||||
|
"one unit in both its mic columns: I145HKWT.DY0H row 672 reads 95.92 under psi(L) "
|
||||||
|
"and dB(L) (count 5, dB), S353K894.OE0H rows 106 and 608 0.000 under both (count 2, "
|
||||||
|
"psi). 2026-11-09."),
|
||||||
|
applies=_mic_units_mixed,
|
||||||
|
)
|
||||||
|
|
||||||
CARVEOUTS: tuple[Carveout, ...] = (SATURATION, INTERVAL_COUNT_IS_DURATION,
|
CARVEOUTS: tuple[Carveout, ...] = (SATURATION, INTERVAL_COUNT_IS_DURATION,
|
||||||
UNITS_IS_A_DISPLAY_PREFERENCE)
|
UNITS_IS_A_DISPLAY_PREFERENCE, MIC_UNITS_MIXED)
|
||||||
@@ -719,6 +719,15 @@ _HIST_GEO_COUNTS_PER_UNIT = 16
|
|||||||
# 0.0125 / 32768, that read every mic peak ~95x low (2026-10-31).
|
# 0.0125 / 32768, that read every mic peak ~95x low (2026-10-31).
|
||||||
_PA_PER_PSI = 6894.757
|
_PA_PER_PSI = 6894.757
|
||||||
_MIC_PSI_PER_COUNT = _wc.MIC_PA_PER_COUNT / _PA_PER_PSI
|
_MIC_PSI_PER_COUNT = _wc.MIC_PA_PER_COUNT / _PA_PER_PSI
|
||||||
|
# The mic's own range byte (its channel block, label + 29, as the geophones'):
|
||||||
|
# at 1 each count is an eighth. Set on 7 DL2 events, all of them Blastware's
|
||||||
|
# values divided by 8, and on none of the other 70,026 (2026-11-09).
|
||||||
|
_MIC_COUNTS_PER_UNIT_BY_RANGE = {0: 1, 1: 8}
|
||||||
|
|
||||||
|
|
||||||
|
def mic_count_divisor(mic_range: Optional[int]) -> int:
|
||||||
|
"""How many of a mic's counts make one 0.25 Pa unit at its range."""
|
||||||
|
return _MIC_COUNTS_PER_UNIT_BY_RANGE.get(mic_range, 1)
|
||||||
|
|
||||||
|
|
||||||
def _decode_strt(strt: bytes) -> dict:
|
def _decode_strt(strt: bytes) -> dict:
|
||||||
@@ -755,7 +764,8 @@ def _decode_samples_4ch_int16_le(stream: bytes) -> dict[str, list[int]]:
|
|||||||
|
|
||||||
|
|
||||||
def _peaks_from_samples(samples: dict[str, list[int]],
|
def _peaks_from_samples(samples: dict[str, list[int]],
|
||||||
geo_fs_ins: float = _GEO_NORMAL_FS_INS) -> PeakValues:
|
geo_fs_ins: float = _GEO_NORMAL_FS_INS,
|
||||||
|
mic_divisor: int = 1) -> PeakValues:
|
||||||
"""
|
"""
|
||||||
Compute peaks from raw int16 samples at the given geophone full scale
|
Compute peaks from raw int16 samples at the given geophone full scale
|
||||||
(Normal, 10 in/s, unless the file's range says otherwise). Used by the
|
(Normal, 10 in/s, unless the file's range says otherwise). Used by the
|
||||||
@@ -772,9 +782,9 @@ def _peaks_from_samples(samples: dict[str, list[int]],
|
|||||||
vert = _peak_ins(samples.get("Vert", []))
|
vert = _peak_ins(samples.get("Vert", []))
|
||||||
long_ = _peak_ins(samples.get("Long", []))
|
long_ = _peak_ins(samples.get("Long", []))
|
||||||
|
|
||||||
# Mic in psi: one count = 0.25 Pa
|
# Mic in psi: one count = 0.25 Pa, an eighth of that on a range-1 mic
|
||||||
mic_ch = samples.get("MicL", []) or []
|
mic_ch = samples.get("MicL", []) or []
|
||||||
mic = max((abs(int(v)) for v in mic_ch), default=0) * _MIC_PSI_PER_COUNT
|
mic = max((abs(int(v)) for v in mic_ch), default=0) * _MIC_PSI_PER_COUNT / mic_divisor
|
||||||
|
|
||||||
# Peak vector sum: max over time of sqrt(T^2 + V^2 + L^2)
|
# Peak vector sum: max over time of sqrt(T^2 + V^2 + L^2)
|
||||||
pvs = 0.0
|
pvs = 0.0
|
||||||
@@ -857,7 +867,11 @@ def _apply_unit_summary(pv: PeakValues, summary: dict, geo_fs_ins: float, sample
|
|||||||
* a waveform's peak displacement = half its integral: 19,479 / 19,479
|
* a waveform's peak displacement = half its integral: 19,479 / 19,479
|
||||||
* a waveform's times of peak and vector-sum time, from the unit's peak
|
* a waveform's times of peak and vector-sum time, from the unit's peak
|
||||||
samples (`pretrig` given): they replace the samples' own, which differ
|
samples (`pretrig` given): they replace the samples' own, which differ
|
||||||
only where the stored samples wrap (O117I1NK.R70W)."""
|
only where the stored samples wrap (O117I1NK.R70W)
|
||||||
|
* over range, every record type: a channel whose peak passes full scale,
|
||||||
|
and the vector sum when any geophone does -- Blastware's OORANGE on all
|
||||||
|
43 such events, and on none of the 38 whose vector sum alone passes
|
||||||
|
the range (2026-11-09)."""
|
||||||
# The summary's geophone values are decoder units, as a histogram's are.
|
# The summary's geophone values are decoder units, as a histogram's are.
|
||||||
unit_ins = _HIST_GEO_COUNTS_PER_UNIT * geo_fs_ins / _GEO_INT16_FS
|
unit_ins = _HIST_GEO_COUNTS_PER_UNIT * geo_fs_ins / _GEO_INT16_FS
|
||||||
for ch, attr in (("Tran", "tran"), ("Vert", "vert"), ("Long", "long"), ("MicL", "mic")):
|
for ch, attr in (("Tran", "tran"), ("Vert", "vert"), ("Long", "long"), ("MicL", "mic")):
|
||||||
@@ -867,11 +881,13 @@ def _apply_unit_summary(pv: PeakValues, summary: dict, geo_fs_ins: float, sample
|
|||||||
hz, above = _zc_from_half_period(c["half_period"], sample_rate)
|
hz, above = _zc_from_half_period(c["half_period"], sample_rate)
|
||||||
setattr(pv, f"{attr}_zc_freq", hz)
|
setattr(pv, f"{attr}_zc_freq", hz)
|
||||||
setattr(pv, f"{attr}_zc_above_range", above)
|
setattr(pv, f"{attr}_zc_above_range", above)
|
||||||
|
setattr(pv, f"{attr}_over_range", max(abs(c["min"]), abs(c["max"])) > _SUMMARY_FULL_SCALE)
|
||||||
if pretrig is None:
|
if pretrig is None:
|
||||||
continue
|
continue
|
||||||
setattr(pv, f"{ch.lower()}_time_of_peak", (c["peak_sample"] - pretrig) / sample_rate)
|
setattr(pv, f"{ch.lower()}_time_of_peak", (c["peak_sample"] - pretrig) / sample_rate)
|
||||||
if ch != "MicL":
|
if ch != "MicL":
|
||||||
setattr(pv, f"{attr}_peak_disp_in", c["disp_integral"] * unit_ins / sample_rate / 2)
|
setattr(pv, f"{attr}_peak_disp_in", c["disp_integral"] * unit_ins / sample_rate / 2)
|
||||||
|
pv.pvs_over_range = pv.tran_over_range or pv.vert_over_range or pv.long_over_range
|
||||||
if pretrig is not None and all(ch in summary for ch in ("Tran", "Vert", "Long")):
|
if pretrig is not None and all(ch in summary for ch in ("Tran", "Vert", "Long")):
|
||||||
pv.pvs_time = (summary["pvs_sample"] - pretrig) / sample_rate
|
pv.pvs_time = (summary["pvs_sample"] - pretrig) / sample_rate
|
||||||
|
|
||||||
@@ -1109,6 +1125,19 @@ _EVENT_RECORD_ID = 0x05
|
|||||||
_SUMMARY_PVS_SAMPLE = slice(25, 29)
|
_SUMMARY_PVS_SAMPLE = slice(25, 29)
|
||||||
_SUMMARY_CHANNELS = {0x32: "Tran", 0x33: "Vert", 0x34: "Long", 0x35: "MicL"}
|
_SUMMARY_CHANNELS = {0x32: "Tran", 0x33: "Vert", 0x34: "Long", 0x35: "MicL"}
|
||||||
_SUMMARY_CHANNEL_LEN = 21 # the payload; the record is 22 with its id
|
_SUMMARY_CHANNEL_LEN = 21 # the payload; the record is 22 with its id
|
||||||
|
# Full scale in the summary's units: 2,000 x 16 = 32,000 counts on either
|
||||||
|
# geophone range, and 2,000 counts on the mic. A peak past it is Blastware's
|
||||||
|
# OORANGE: numeric up to 1,991 / 1,933, OORANGE from 2,001 (DL2, 2026-11-09).
|
||||||
|
_SUMMARY_FULL_SCALE = 2000
|
||||||
|
|
||||||
|
|
||||||
|
def over_full_scale(count: int, channel: str) -> bool:
|
||||||
|
"""Whether a decoded peak passes full scale: Blastware's OORANGE. A geophone
|
||||||
|
count is in ADC counts (16 to the unit), the mic's in its own. The same rule
|
||||||
|
holds inside a histogram's intervals: numeric up to 1,846 / 1,414, OORANGE
|
||||||
|
from 2,001 (DL2, 2026-11-09)."""
|
||||||
|
per_unit = 1 if channel == "MicL" else _HIST_GEO_COUNTS_PER_UNIT
|
||||||
|
return abs(count) > _SUMMARY_FULL_SCALE * per_unit
|
||||||
|
|
||||||
|
|
||||||
def _unit_summary(chain: dict[int, bytes]) -> Optional[dict]:
|
def _unit_summary(chain: dict[int, bytes]) -> Optional[dict]:
|
||||||
@@ -1386,6 +1415,7 @@ def _setup_trigger(raw: bytes, k: int) -> dict:
|
|||||||
if m >= 0:
|
if m >= 0:
|
||||||
out["trigger_level_mic_psi"] = struct.unpack_from(">f", raw, m + _TRIGGER_LEVEL_AFTER_LABEL)[0]
|
out["trigger_level_mic_psi"] = struct.unpack_from(">f", raw, m + _TRIGGER_LEVEL_AFTER_LABEL)[0]
|
||||||
out["mic_type"] = int.from_bytes(raw[m + _MIC_TYPE_AFTER_LABEL:m + _MIC_TYPE_AFTER_LABEL + 4], "big")
|
out["mic_type"] = int.from_bytes(raw[m + _MIC_TYPE_AFTER_LABEL:m + _MIC_TYPE_AFTER_LABEL + 4], "big")
|
||||||
|
out["mic_range"] = raw[m + _RANGE_AFTER_LABEL]
|
||||||
return out
|
return out
|
||||||
|
|
||||||
|
|
||||||
@@ -1498,7 +1528,8 @@ def decode_blastware_bytes(raw: bytes, *, name: Optional[str] = None) -> Event:
|
|||||||
# [10:18] ts2 (stop) BE 8B
|
# [10:18] ts2 (stop) BE 8B
|
||||||
# [18:20] the monitor log's flag word (_monitor_log)
|
# [18:20] the monitor log's flag word (_monitor_log)
|
||||||
# [20:22] the trigger source, as in the event record [22:24] 00 00
|
# [20:22] the trigger source, as in the event record [22:24] 00 00
|
||||||
# [24:26] not identified (no common CRC-16 or 16-bit sum fits)
|
# [24:26] CRC-16/AUG-CCITT, BE, over the record's length prefix `00 1a`
|
||||||
|
# and [0:22]: 70,041 / 70,041 DL2 files (2026-11-11)
|
||||||
ts1 = _bw._decode_ts_be(footer[2:10])
|
ts1 = _bw._decode_ts_be(footer[2:10])
|
||||||
ts2 = _bw._decode_ts_be(footer[10:18])
|
ts2 = _bw._decode_ts_be(footer[10:18])
|
||||||
|
|
||||||
@@ -1693,7 +1724,8 @@ def decode_blastware_bytes(raw: bytes, *, name: Optional[str] = None) -> Event:
|
|||||||
has_samples = any(samples.get(ch) for ch in ("Tran", "Vert", "Long", "MicL"))
|
has_samples = any(samples.get(ch) for ch in ("Tran", "Vert", "Long", "MicL"))
|
||||||
# The geophone full scale is the file's range; Normal when it wasn't read.
|
# The geophone full scale is the file's range; Normal when it wasn't read.
|
||||||
geo_fs = _GEO_FS_BY_RANGE.get(ev.geo_range, _GEO_NORMAL_FS_INS)
|
geo_fs = _GEO_FS_BY_RANGE.get(ev.geo_range, _GEO_NORMAL_FS_INS)
|
||||||
ev.peak_values = _peaks_from_samples(samples, geo_fs) if has_samples else None
|
ev.peak_values = (_peaks_from_samples(samples, geo_fs, mic_count_divisor(ev.mic_range))
|
||||||
|
if has_samples else None)
|
||||||
if (is_waveform_body and ev.peak_values is not None and ev.sample_rate
|
if (is_waveform_body and ev.peak_values is not None and ev.sample_rate
|
||||||
and ev.pretrig_samples is not None):
|
and ev.pretrig_samples is not None):
|
||||||
_waveform_peak_detail(ev.peak_values, samples, geo_fs, ev.sample_rate, ev.pretrig_samples)
|
_waveform_peak_detail(ev.peak_values, samples, geo_fs, ev.sample_rate, ev.pretrig_samples)
|
||||||
|
|||||||
+17
-12
@@ -534,11 +534,13 @@ STRT_MARKER = b"STRT"
|
|||||||
def unescape_reply(data: bytes) -> bytes:
|
def unescape_reply(data: bytes) -> bytes:
|
||||||
"""A reply's data with each kept escape removed: `10 02/03/04` → `02/03/04`.
|
"""A reply's data with each kept escape removed: `10 02/03/04` → `02/03/04`.
|
||||||
|
|
||||||
The unit escapes 02, 03, 04 and 10 in its replies exactly as requests do
|
The unit escapes 02, 03, 04 and 10 in its replies exactly as requests do,
|
||||||
(748/748 replies, 2026-10-26). S3FrameParser collapses `10 10` but keeps the
|
the checksum included (748/748 replies, 2026-10-26; 7,747 / 7,747 across every
|
||||||
`10` of `10 02/03/04` (inner-frame markers to it), so its `.data` carries an
|
recording, March to October 2026, #58). S3FrameParser collapses `10 10` but
|
||||||
extra byte before each 02/03/04 value -- harmless for fields read before the
|
keeps the `10` of `10 02/03/04` (inner-frame markers to it) everywhere but the
|
||||||
escape, one byte off for any read after it, or counted from the end."""
|
checksum, so its `.data` carries an extra byte before each 02/03/04 value --
|
||||||
|
harmless for fields read before the escape, one byte off for any read after it,
|
||||||
|
or counted from the end."""
|
||||||
out, i = bytearray(), 0
|
out, i = bytearray(), 0
|
||||||
while i < len(data):
|
while i < len(data):
|
||||||
if data[i] == DLE and i + 1 < len(data) and data[i + 1] in (STX, ETX, 0x04):
|
if data[i] == DLE and i + 1 < len(data) and data[i + 1] in (STX, ETX, 0x04):
|
||||||
@@ -632,11 +634,8 @@ class S3Frame:
|
|||||||
page_lo: int # PAGE_LO from header
|
page_lo: int # PAGE_LO from header
|
||||||
data: bytes # payload data section (payload[5:], checksum already stripped)
|
data: bytes # payload data section (payload[5:], checksum already stripped)
|
||||||
checksum_valid: bool
|
checksum_valid: bool
|
||||||
chk_byte: int = 0 # actual checksum byte received from wire (body[-1])
|
chk_byte: int = 0 # actual checksum byte received from wire (body[-1]); an
|
||||||
# needed for waveform file reconstruction: when the last data byte
|
# escaped one (`10 02/03/04`) leaves no 10 in `data` (#58)
|
||||||
# is 0x10 and chk_byte ∈ {0x02, 0x03, 0x04}, the DLE+chk pair
|
|
||||||
# must be included in the DLE-strip operation to correctly
|
|
||||||
# reconstruct the Blastware binary body.
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def page_key(self) -> int:
|
def page_key(self) -> int:
|
||||||
@@ -759,9 +758,15 @@ class S3FrameParser:
|
|||||||
if len(body) < 6:
|
if len(body) < 6:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
raw_payload = body[:-1] # everything except the trailing checksum byte
|
# A checksum of 02, 03 or 04 arrives escaped, `10 X`, and _step keeps both
|
||||||
|
# bytes; that 10 is the escape, never data (#58: 272 of 7,747 recorded
|
||||||
|
# replies, every one an escape pair). Any other checksum is one byte.
|
||||||
|
n_chk = 2 if body[-2] == DLE and body[-1] in (STX, ETX, 0x04) else 1
|
||||||
|
raw_payload = body[:-n_chk] # everything except the checksum
|
||||||
chk_received = body[-1]
|
chk_received = body[-1]
|
||||||
chk_computed = checksum(raw_payload)
|
# SUM8 of the payload unescaped: the kept `10` of a `10 02/03/04` is not
|
||||||
|
# summed (7,747 of 7,747 recorded replies check this way).
|
||||||
|
chk_computed = checksum(unescape_reply(raw_payload))
|
||||||
|
|
||||||
if len(raw_payload) < 5:
|
if len(raw_payload) < 5:
|
||||||
return None
|
return None
|
||||||
|
|||||||
@@ -381,6 +381,14 @@ class PeakValues:
|
|||||||
tran_peak_disp_in: Optional[float] = None
|
tran_peak_disp_in: Optional[float] = None
|
||||||
vert_peak_disp_in: Optional[float] = None
|
vert_peak_disp_in: Optional[float] = None
|
||||||
long_peak_disp_in: Optional[float] = None
|
long_peak_disp_in: Optional[float] = None
|
||||||
|
# Over range: the unit's own peak passed full scale (2026-11-09). Blastware
|
||||||
|
# prints OORANGE for that peak, and for the vector sum when any geophone is
|
||||||
|
# over; the value beside it is then a lower bound.
|
||||||
|
tran_over_range: bool = False
|
||||||
|
vert_over_range: bool = False
|
||||||
|
long_over_range: bool = False
|
||||||
|
mic_over_range: bool = False
|
||||||
|
pvs_over_range: bool = False
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
@@ -600,6 +608,7 @@ class Event:
|
|||||||
trigger_level_mic_psi: Optional[float] = None
|
trigger_level_mic_psi: Optional[float] = None
|
||||||
record_stop_mode: Optional[int] = None # 0 = Fixed
|
record_stop_mode: Optional[int] = None # 0 = Fixed
|
||||||
mic_type: Optional[int] = None # 2 = Linear Weighting (as Series IV)
|
mic_type: Optional[int] = None # 2 = Linear Weighting (as Series IV)
|
||||||
|
mic_range: Optional[int] = None # 0; 1 = each mic count is an eighth (2026-11-09)
|
||||||
stop_time: Optional[datetime.datetime] = None # the footer's stop
|
stop_time: Optional[datetime.datetime] = None # the footer's stop
|
||||||
# A histogram's per-interval detail (2026-11-03); None for a waveform.
|
# A histogram's per-interval detail (2026-11-03); None for a waveform.
|
||||||
histogram_interval_sec: Optional[int] = None # as ComplianceConfig.histogram_interval_sec
|
histogram_interval_sec: Optional[int] = None # as ComplianceConfig.histogram_interval_sec
|
||||||
|
|||||||
@@ -196,10 +196,11 @@ def assemble_compliance_content(frames: "list[bytes]", lengths: "Optional[tuple]
|
|||||||
|
|
||||||
`lengths`: the content each frame was asked for (SFM's read: 1024, 1024, 42).
|
`lengths`: the content each frame was asked for (SFM's read: 1024, 1024, 42).
|
||||||
Each frame then gives exactly that. Measured at the bench 2026-11-04 (BE9441):
|
Each frame then gives exactly that. Measured at the bench 2026-11-04 (BE9441):
|
||||||
when a frame's checksum byte is itself escaped (02 / 03 / 04), the parser keeps
|
when a frame's checksum byte was itself escaped (02 / 03 / 04), the parser kept
|
||||||
the escape's 0x10 and strips only the byte after it, so the frame arrives one
|
the escape's 0x10, so the frame arrived one byte long, ending in a lone 0x10.
|
||||||
byte long, ending in a lone 0x10. That one byte is dropped; any other leftover
|
The parser drops it since #58; this trim stays as a guard. That one byte is
|
||||||
is kept, and the block then fails is_compliance_content."""
|
dropped; any other leftover is kept, and the block then fails
|
||||||
|
is_compliance_content."""
|
||||||
parts = [unescape_reply(bytes(f))[11:] for f in frames]
|
parts = [unescape_reply(bytes(f))[11:] for f in frames]
|
||||||
parts = [p[1:] for p in parts[:-1]] + parts[-1:]
|
parts = [p[1:] for p in parts[:-1]] + parts[-1:]
|
||||||
if lengths is not None and len(lengths) == len(parts):
|
if lengths is not None and len(lengths) == len(parts):
|
||||||
@@ -633,8 +634,9 @@ class MiniMateProtocol:
|
|||||||
data_rsp = self._recv_one(expected_sub=rsp_sub)
|
data_rsp = self._recv_one(expected_sub=rsp_sub)
|
||||||
|
|
||||||
raw = unescape_reply(data_rsp.data)[11:] # unescaped, as read_event_index
|
raw = unescape_reply(data_rsp.data)[11:] # unescaped, as read_event_index
|
||||||
# An escaped checksum byte leaves its 0x10 behind (bench 2026-11-04; see
|
# An escaped checksum byte left its 0x10 behind until #58 (bench 2026-11-04;
|
||||||
# assemble_compliance_content): one stray byte beyond what was asked is dropped.
|
# see assemble_compliance_content): kept as a guard, one stray byte beyond
|
||||||
|
# what was asked is dropped.
|
||||||
if len(raw) == length + 1 and raw[-1:] == b"\x10":
|
if len(raw) == length + 1 and raw[-1:] == b"\x10":
|
||||||
raw = raw[:-1]
|
raw = raw[:-1]
|
||||||
log.debug("read_waveform_data_raw: got %d bytes", len(raw))
|
log.debug("read_waveform_data_raw: got %d bytes", len(raw))
|
||||||
|
|||||||
@@ -640,16 +640,21 @@ MIC_PA_PER_COUNT = 0.25
|
|||||||
# 124.2, and the 81.94 first fitted to a handful of values misses counts 119
|
# 124.2, and the 81.94 first fitted to a handful of values misses counts 119
|
||||||
# and 132. Its display chain presumably carries rounded constants; the
|
# and 132. Its display chain presumably carries rounded constants; the
|
||||||
# window, not the physics, is what is measured.
|
# window, not the physics, is what is measured.
|
||||||
_MIC_DB_REF = 81.9384
|
# ⚠ CORRECTED 2026-11-09: that window was too high. Every count Blastware
|
||||||
|
# printed in DL2 -- 1,704 in waveform sample tables, 520 in histogram
|
||||||
|
# intervals, 494 histogram peaks -- leaves [81.9382058, 81.9382266]: count
|
||||||
|
# 129 (124.2) bounds it from below, 463 (135.2, which 81.9384 prints 135.3)
|
||||||
|
# and 677 (138.5) from above. One offset serves all three.
|
||||||
|
_MIC_DB_REF = 81.938216
|
||||||
|
|
||||||
|
|
||||||
def mic_count_to_db(count: int) -> float:
|
def mic_count_to_db(count: int) -> float:
|
||||||
"""Convert a MicL ADC count to dB(L) for BW-display-compatible output.
|
"""Convert a MicL ADC count to dB(L) for BW-display-compatible output.
|
||||||
|
|
||||||
dB = sign(count) × (81.9384 + 20 × log10(|count|)) for |count| ≥ 1
|
dB = sign(count) × (81.938216 + 20 × log10(|count|)) for |count| ≥ 1
|
||||||
dB = 0.0 for count == 0
|
dB = 0.0 for count == 0
|
||||||
|
|
||||||
81.9384 ≈ 20 log10(0.25 Pa / 20 µPa); see _MIC_DB_REF.
|
81.938216 ≈ 20 log10(0.25 Pa / 20 µPa); see _MIC_DB_REF.
|
||||||
count=±1 → ±81.94 dB; count=813 → 140.14 dB (the V70 fixture).
|
count=±1 → ±81.94 dB; count=813 → 140.14 dB (the V70 fixture).
|
||||||
"""
|
"""
|
||||||
if count == 0:
|
if count == 0:
|
||||||
|
|||||||
+19
-3
@@ -46,7 +46,19 @@ from sfm.shape_metrics import shape_from_h5, offset_from_h5
|
|||||||
|
|
||||||
log = logging.getLogger("sfm.waveform_store")
|
log = logging.getLogger("sfm.waveform_store")
|
||||||
|
|
||||||
A5_PICKLE_VERSION = 1
|
# 2 (2026-11-06, #58): frames as the parser gives them since an escaped checksum
|
||||||
|
# stopped leaving its 0x10 in `data`. A version-1 frame with a checksum of 02, 03
|
||||||
|
# or 04 still ends in that 0x10; load_a5 drops it (_frame_from_v1).
|
||||||
|
A5_PICKLE_VERSION = 2
|
||||||
|
|
||||||
|
|
||||||
|
def _frame_from_v1(f: S3Frame) -> S3Frame:
|
||||||
|
"""A frame pickled before #58, as the parser reads its reply now. Its 02/03/04
|
||||||
|
checksum arrived as `10 X` (every recorded one did), and the 10 ended `data`."""
|
||||||
|
if f.chk_byte in (0x02, 0x03, 0x04) and f.data[-1:] == b"\x10":
|
||||||
|
return S3Frame(sub=f.sub, page_hi=f.page_hi, page_lo=f.page_lo, data=f.data[:-1],
|
||||||
|
checksum_valid=f.checksum_valid, chk_byte=f.chk_byte)
|
||||||
|
return f
|
||||||
|
|
||||||
|
|
||||||
def _frame_to_dict(f: S3Frame) -> dict:
|
def _frame_to_dict(f: S3Frame) -> dict:
|
||||||
@@ -801,7 +813,8 @@ class WaveformStore:
|
|||||||
|
|
||||||
def load_a5(self, serial: str, filename: str) -> Optional[list[S3Frame]]:
|
def load_a5(self, serial: str, filename: str) -> Optional[list[S3Frame]]:
|
||||||
"""
|
"""
|
||||||
Re-hydrate the pickled A5 frame stream for a stored event.
|
Re-hydrate the pickled A5 frame stream for a stored event, as the parser
|
||||||
|
reads it now (a version-1 pickle's frames are converted).
|
||||||
Returns None if the sidecar is missing.
|
Returns None if the sidecar is missing.
|
||||||
"""
|
"""
|
||||||
_, a5_path = self.paths_for(serial, filename)
|
_, a5_path = self.paths_for(serial, filename)
|
||||||
@@ -812,7 +825,10 @@ class WaveformStore:
|
|||||||
if not isinstance(payload, dict) or "frames" not in payload:
|
if not isinstance(payload, dict) or "frames" not in payload:
|
||||||
log.warning("WaveformStore.load_a5: malformed sidecar at %s", a5_path)
|
log.warning("WaveformStore.load_a5: malformed sidecar at %s", a5_path)
|
||||||
return None
|
return None
|
||||||
return [_dict_to_frame(d) for d in payload["frames"]]
|
frames = [_dict_to_frame(d) for d in payload["frames"]]
|
||||||
|
if payload.get("version", 1) < 2:
|
||||||
|
frames = [_frame_from_v1(f) for f in frames]
|
||||||
|
return frames
|
||||||
|
|
||||||
# ── modern .sfm.json sidecar accessors ──────────────────────────────────────
|
# ── modern .sfm.json sidecar accessors ──────────────────────────────────────
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
+2264
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
+10116
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
+2100
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
+13191
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
+2498
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
+3204
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
+117
@@ -0,0 +1,117 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Event>
|
||||||
|
<FileVersion>8.0</FileVersion>
|
||||||
|
<EventType>Full Histogram</EventType>
|
||||||
|
<SerialNumber>BE9558</SerialNumber>
|
||||||
|
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||||
|
<FileName>K558KD43.NZ0H</FileName>
|
||||||
|
<HistogramStartTime>17:38:23</HistogramStartTime>
|
||||||
|
<HistogramStartDate>2024-01-08</HistogramStartDate>
|
||||||
|
<HistogramStopTime>17:38:59</HistogramStopTime>
|
||||||
|
<HistogramStopDate>2024-01-08</HistogramStopDate>
|
||||||
|
<Channels>
|
||||||
|
<Channel>Tran</Channel>
|
||||||
|
<Channel>Vert</Channel>
|
||||||
|
<Channel>Long</Channel>
|
||||||
|
<Channel>MicL</Channel>
|
||||||
|
</Channels>
|
||||||
|
<NumberofIntervals>1.00</NumberofIntervals>
|
||||||
|
<IntervalSize>1 minute</IntervalSize>
|
||||||
|
<SampleRate>1024 sps</SampleRate>
|
||||||
|
<BatteryLevel>6.2 Volts</BatteryLevel>
|
||||||
|
<Calibration>May 31, 2023 by Instantel</Calibration>
|
||||||
|
<Units>in/s and dB(L)</Units>
|
||||||
|
<Project>CMU-RKM Hall-Loc 2-Museum-Scaife Gallery</Project>
|
||||||
|
<Client>PJ Dick Inc.</Client>
|
||||||
|
<UserName>Terra-Mechanics Inc. - Harrison</UserName>
|
||||||
|
<Seis.Loc>Location #2 -Museum - Scaife Gallery</Seis.Loc>
|
||||||
|
<GeoRange>
|
||||||
|
<Value>10.000</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</GeoRange>
|
||||||
|
<TranPPV>
|
||||||
|
<Value>1.830</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</TranPPV>
|
||||||
|
<VertPPV>
|
||||||
|
<Value>4.935</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</VertPPV>
|
||||||
|
<LongPPV>
|
||||||
|
<Value>3.925</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</LongPPV>
|
||||||
|
<TranZCFreq>
|
||||||
|
<Value>16</Value>
|
||||||
|
<Units>Hz</Units>
|
||||||
|
</TranZCFreq>
|
||||||
|
<VertZCFreq>
|
||||||
|
<Value>51</Value>
|
||||||
|
<Units>Hz</Units>
|
||||||
|
</VertZCFreq>
|
||||||
|
<LongZCFreq>
|
||||||
|
<Value>8.0</Value>
|
||||||
|
<Units>Hz</Units>
|
||||||
|
</LongZCFreq>
|
||||||
|
<TranPeakTime>17:38:59</TranPeakTime>
|
||||||
|
<TranPeakDate>2024-01-08</TranPeakDate>
|
||||||
|
<VertPeakTime>17:38:59</VertPeakTime>
|
||||||
|
<VertPeakDate>2024-01-08</VertPeakDate>
|
||||||
|
<LongPeakTime>17:38:59</LongPeakTime>
|
||||||
|
<LongPeakDate>2024-01-08</LongPeakDate>
|
||||||
|
<PeakVectorSum>
|
||||||
|
<Value>5.012</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</PeakVectorSum>
|
||||||
|
<PeakVectorSumTime>17:38:59</PeakVectorSumTime>
|
||||||
|
<PeakVectorSumDate>2024-01-08</PeakVectorSumDate>
|
||||||
|
<Microphone>Linear Weighting</Microphone>
|
||||||
|
<MicLPSPL>
|
||||||
|
<Value>OORANGE</Value>
|
||||||
|
<Units></Units>
|
||||||
|
</MicLPSPL>
|
||||||
|
<MicLTime>17:38:59</MicLTime>
|
||||||
|
<MicLDate>2024-01-08</MicLDate>
|
||||||
|
<MicLZCFreq>
|
||||||
|
<Value>18</Value>
|
||||||
|
<Units>Hz</Units>
|
||||||
|
</MicLZCFreq>
|
||||||
|
<TranTestFreq>7.4 Hz.</TranTestFreq>
|
||||||
|
<TranTestRatio>4.1</TranTestRatio>
|
||||||
|
<TranTestResults>Passed</TranTestResults>
|
||||||
|
<VertTestFreq>7.6 Hz.</VertTestFreq>
|
||||||
|
<VertTestRatio>3.3</VertTestRatio>
|
||||||
|
<VertTestResults>Passed</VertTestResults>
|
||||||
|
<LongTestFreq>7.4 Hz.</LongTestFreq>
|
||||||
|
<LongTestRatio>3.7</LongTestRatio>
|
||||||
|
<LongTestResults>Passed</LongTestResults>
|
||||||
|
<MicLTestFreq>0.0 Hz.</MicLTestFreq>
|
||||||
|
<MicLTestAmplitude>0 mv</MicLTestAmplitude>
|
||||||
|
<MicLTestResults>Check</MicLTestResults>
|
||||||
|
<OORANGE>Out of Range</OORANGE>
|
||||||
|
<UsbSummaryChannels>
|
||||||
|
</UsbSummaryChannels>
|
||||||
|
<MonitorLog>2024-01-08 17:38:22 - 2024-01-08 17:38:59 "Event Recorded Modem Exit"</MonitorLog>
|
||||||
|
<HistogramData>
|
||||||
|
<HistogramDataColumnTitle>
|
||||||
|
<ColumnTitle> Tran Peak in/s </ColumnTitle>
|
||||||
|
<ColumnTitle> Tran Freq Hz </ColumnTitle>
|
||||||
|
<ColumnTitle> Vert Peak in/s </ColumnTitle>
|
||||||
|
<ColumnTitle> Vert Freq Hz </ColumnTitle>
|
||||||
|
<ColumnTitle> Long Peak in/s </ColumnTitle>
|
||||||
|
<ColumnTitle> Long Freq Hz </ColumnTitle>
|
||||||
|
<ColumnTitle> Geo PVS in/s </ColumnTitle>
|
||||||
|
<ColumnTitle> MicL Peak psi(L) </ColumnTitle>
|
||||||
|
<ColumnTitle> MicL Peak dB(L) </ColumnTitle>
|
||||||
|
<ColumnTitle> MicL Freq Hz </ColumnTitle>
|
||||||
|
</HistogramDataColumnTitle>
|
||||||
|
<HistogramDataIntervals>
|
||||||
|
<Time>2024-01-08 17:38:59</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>1.830</Cell><Cell>16</Cell><Cell>4.935</Cell><Cell>51</Cell><Cell>3.925</Cell><Cell>8.0</Cell><Cell>5.012</Cell><Cell>OORANGE</Cell><Cell>OORANGE</Cell><Cell>18</Cell></Row>
|
||||||
|
</HistogramDataIntervals>
|
||||||
|
</HistogramData>
|
||||||
|
<HistogramDataUsbChannels>
|
||||||
|
</HistogramDataUsbChannels>
|
||||||
|
|
||||||
|
</Event>
|
||||||
BIN
Binary file not shown.
+743
@@ -0,0 +1,743 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Event>
|
||||||
|
<FileVersion>8.0</FileVersion>
|
||||||
|
<EventType>Full Histogram</EventType>
|
||||||
|
<SerialNumber>BE11007</SerialNumber>
|
||||||
|
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||||
|
<FileName>M007JC05.OI0H</FileName>
|
||||||
|
<HistogramStartTime>07:48:18</HistogramStartTime>
|
||||||
|
<HistogramStartDate>2022-01-17</HistogramStartDate>
|
||||||
|
<HistogramStopTime>11:18:02</HistogramStopTime>
|
||||||
|
<HistogramStopDate>2022-01-17</HistogramStopDate>
|
||||||
|
<Channels>
|
||||||
|
<Channel>Tran</Channel>
|
||||||
|
<Channel>Vert</Channel>
|
||||||
|
<Channel>Long</Channel>
|
||||||
|
<Channel>MicL</Channel>
|
||||||
|
</Channels>
|
||||||
|
<NumberofIntervals>210.00</NumberofIntervals>
|
||||||
|
<IntervalSize>1 minute</IntervalSize>
|
||||||
|
<SampleRate>1024 sps</SampleRate>
|
||||||
|
<BatteryLevel>6.8 Volts</BatteryLevel>
|
||||||
|
<Calibration>April 7, 2021 by Instantel</Calibration>
|
||||||
|
<Units>in/s and dB(L)</Units>
|
||||||
|
<Project>ECMS100607 - Loc 1 - 740 Washington Ave</Project>
|
||||||
|
<Client>J B Fay Co.</Client>
|
||||||
|
<UserName>Terra-Mechanics Inc. - D. Harrison</UserName>
|
||||||
|
<SeisLoc>Location #1 - 740 Washington - Church</SeisLoc>
|
||||||
|
<GeoRange>
|
||||||
|
<Value>10.000</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</GeoRange>
|
||||||
|
<TranPPV>
|
||||||
|
<Value>8.360</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</TranPPV>
|
||||||
|
<VertPPV>
|
||||||
|
<Value>8.350</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</VertPPV>
|
||||||
|
<LongPPV>
|
||||||
|
<Value>8.385</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</LongPPV>
|
||||||
|
<TranZCFreq>
|
||||||
|
<Value>>100</Value>
|
||||||
|
<Units>Hz</Units>
|
||||||
|
</TranZCFreq>
|
||||||
|
<VertZCFreq>
|
||||||
|
<Value>>100</Value>
|
||||||
|
<Units>Hz</Units>
|
||||||
|
</VertZCFreq>
|
||||||
|
<LongZCFreq>
|
||||||
|
<Value>>100</Value>
|
||||||
|
<Units>Hz</Units>
|
||||||
|
</LongZCFreq>
|
||||||
|
<TranPeakTime>11:18:02</TranPeakTime>
|
||||||
|
<TranPeakDate>2022-01-17</TranPeakDate>
|
||||||
|
<VertPeakTime>11:18:02</VertPeakTime>
|
||||||
|
<VertPeakDate>2022-01-17</VertPeakDate>
|
||||||
|
<LongPeakTime>11:18:02</LongPeakTime>
|
||||||
|
<LongPeakDate>2022-01-17</LongPeakDate>
|
||||||
|
<PeakVectorSum>
|
||||||
|
<Value>14.49</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</PeakVectorSum>
|
||||||
|
<PeakVectorSumTime>11:18:02</PeakVectorSumTime>
|
||||||
|
<PeakVectorSumDate>2022-01-17</PeakVectorSumDate>
|
||||||
|
<Microphone>Linear Weighting</Microphone>
|
||||||
|
<MicLPSPL>
|
||||||
|
<Value>144.9</Value>
|
||||||
|
<Units>dB(L)</Units>
|
||||||
|
</MicLPSPL>
|
||||||
|
<MicLTime>11:18:02</MicLTime>
|
||||||
|
<MicLDate>2022-01-17</MicLDate>
|
||||||
|
<MicLZCFreq>
|
||||||
|
<Value>1.7</Value>
|
||||||
|
<Units>Hz</Units>
|
||||||
|
</MicLZCFreq>
|
||||||
|
<TranTestFreq>7.5 Hz.</TranTestFreq>
|
||||||
|
<TranTestRatio>3.9</TranTestRatio>
|
||||||
|
<TranTestResults>Passed</TranTestResults>
|
||||||
|
<VertTestFreq>7.5 Hz.</VertTestFreq>
|
||||||
|
<VertTestRatio>3.7</VertTestRatio>
|
||||||
|
<VertTestResults>Passed</VertTestResults>
|
||||||
|
<LongTestFreq>7.5 Hz.</LongTestFreq>
|
||||||
|
<LongTestRatio>4.2</LongTestRatio>
|
||||||
|
<LongTestResults>Passed</LongTestResults>
|
||||||
|
<MicLTestFreq>20.5 Hz.</MicLTestFreq>
|
||||||
|
<MicLTestAmplitude>574 mv</MicLTestAmplitude>
|
||||||
|
<MicLTestResults>Passed</MicLTestResults>
|
||||||
|
<UsbSummaryChannels>
|
||||||
|
</UsbSummaryChannels>
|
||||||
|
<MonitorLog>2022-01-17 07:48:17 - 2022-01-17 11:18:02 "Event Recorded Modem Exit"</MonitorLog>
|
||||||
|
<HistogramData>
|
||||||
|
<HistogramDataColumnTitle>
|
||||||
|
<ColumnTitle> Tran Peak in/s </ColumnTitle>
|
||||||
|
<ColumnTitle> Tran Freq Hz </ColumnTitle>
|
||||||
|
<ColumnTitle> Vert Peak in/s </ColumnTitle>
|
||||||
|
<ColumnTitle> Vert Freq Hz </ColumnTitle>
|
||||||
|
<ColumnTitle> Long Peak in/s </ColumnTitle>
|
||||||
|
<ColumnTitle> Long Freq Hz </ColumnTitle>
|
||||||
|
<ColumnTitle> Geo PVS in/s </ColumnTitle>
|
||||||
|
<ColumnTitle> MicL Peak psi(L) </ColumnTitle>
|
||||||
|
<ColumnTitle> MicL Peak dB(L) </ColumnTitle>
|
||||||
|
<ColumnTitle> MicL Freq Hz </ColumnTitle>
|
||||||
|
</HistogramDataColumnTitle>
|
||||||
|
<HistogramDataIntervals>
|
||||||
|
<Time>2022-01-17 07:49:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 07:50:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 07:51:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 07:52:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 07:53:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 07:54:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 07:55:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 07:56:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 07:57:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 07:58:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 07:59:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:00:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:01:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:02:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:03:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:04:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:05:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:06:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:07:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:08:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:09:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:10:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:11:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:12:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:13:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:14:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:15:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:16:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:17:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:18:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:19:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:20:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:21:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:22:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:23:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:24:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:25:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:26:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:27:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:28:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.010</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:29:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:30:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:31:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:32:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:33:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:34:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:35:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:36:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:37:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:38:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:39:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:40:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:41:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:42:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:43:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:44:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:45:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:46:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:47:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:48:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:49:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:50:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:51:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:52:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:53:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:54:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:55:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:56:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:57:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:58:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 08:59:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:00:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:01:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:02:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:03:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:04:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:05:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:06:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:07:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:08:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:09:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:10:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:11:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:12:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:13:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:14:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:15:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:16:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:17:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:18:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:19:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:20:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:21:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:22:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>93.98</Cell><Cell>64</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:23:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:24:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:25:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:26:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:27:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:28:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:29:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:30:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:31:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:32:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:33:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:34:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:35:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.012</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:36:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:37:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:38:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:39:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:40:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:41:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:42:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:43:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:44:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:45:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:46:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:47:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:48:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:49:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:50:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:51:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:52:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:53:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:54:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:55:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:56:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:57:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:58:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 09:59:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.010</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:00:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:01:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:02:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:03:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:04:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:05:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:06:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:07:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:08:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:09:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:10:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:11:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:12:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:13:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:14:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:15:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:16:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:17:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:18:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:19:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:20:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:21:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:22:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:23:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.010</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:24:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:25:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:26:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:27:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:28:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:29:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:30:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:31:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:32:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:33:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:34:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:35:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:36:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:37:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:38:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:39:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:40:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:41:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:42:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:43:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:44:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:45:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:46:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:47:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:48:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:49:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:50:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:51:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:52:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:53:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:54:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:55:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:56:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:57:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.010</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:58:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 10:59:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:00:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:01:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:02:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:03:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:04:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:05:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:06:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:07:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:08:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:09:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:10:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:11:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>91.48</Cell><Cell>64</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:12:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:13:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:14:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:15:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:16:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.012</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:17:18</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||||
|
<Time>2022-01-17 11:18:02</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>8.360</Cell><Cell>>100</Cell><Cell>8.350</Cell><Cell>>100</Cell><Cell>8.385</Cell><Cell>>100</Cell><Cell>14.49</Cell><Cell>0.051</Cell><Cell>144.9</Cell><Cell>1.7</Cell></Row>
|
||||||
|
</HistogramDataIntervals>
|
||||||
|
</HistogramData>
|
||||||
|
<HistogramDataUsbChannels>
|
||||||
|
</HistogramDataUsbChannels>
|
||||||
|
|
||||||
|
</Event>
|
||||||
BIN
Binary file not shown.
+116
@@ -0,0 +1,116 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Event>
|
||||||
|
<FileVersion>8.0</FileVersion>
|
||||||
|
<EventType>Full Histogram</EventType>
|
||||||
|
<SerialNumber>BE13121</SerialNumber>
|
||||||
|
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||||
|
<FileName>O121L4L1.GU0H</FileName>
|
||||||
|
<HistogramStartTime>18:17:18</HistogramStartTime>
|
||||||
|
<HistogramStartDate>2025-06-25</HistogramStartDate>
|
||||||
|
<HistogramStopTime>18:19:31</HistogramStopTime>
|
||||||
|
<HistogramStopDate>2025-06-25</HistogramStopDate>
|
||||||
|
<Channels>
|
||||||
|
<Channel>Tran</Channel>
|
||||||
|
<Channel>Vert</Channel>
|
||||||
|
<Channel>Long</Channel>
|
||||||
|
<Channel>MicL</Channel>
|
||||||
|
</Channels>
|
||||||
|
<NumberofIntervals>1.00</NumberofIntervals>
|
||||||
|
<IntervalSize>5 minutes</IntervalSize>
|
||||||
|
<SampleRate>1024 sps</SampleRate>
|
||||||
|
<BatteryLevel>6.4 Volts</BatteryLevel>
|
||||||
|
<Calibration>April 29, 2025 by Instantel</Calibration>
|
||||||
|
<Units>in/s and dB(L)</Units>
|
||||||
|
<Project>Fay - Locks & Dam No3- Loc3- 735 Bunola</Project>
|
||||||
|
<Client>Fay Company</Client>
|
||||||
|
<UserName>Terra-Mechanics Inc - Harrison</UserName>
|
||||||
|
<SeisLoc>Loc. No 3 - 735 Bunola River Rd - Church</SeisLoc>
|
||||||
|
<GeoRange>
|
||||||
|
<Value>10.000</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</GeoRange>
|
||||||
|
<TranPPV>
|
||||||
|
<Value>OORANGE</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</TranPPV>
|
||||||
|
<VertPPV>
|
||||||
|
<Value>0.305</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</VertPPV>
|
||||||
|
<LongPPV>
|
||||||
|
<Value>0.405</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</LongPPV>
|
||||||
|
<TranZCFreq>
|
||||||
|
<Value>85</Value>
|
||||||
|
<Units>Hz</Units>
|
||||||
|
</TranZCFreq>
|
||||||
|
<VertZCFreq>
|
||||||
|
<Value>47</Value>
|
||||||
|
<Units>Hz</Units>
|
||||||
|
</VertZCFreq>
|
||||||
|
<LongZCFreq>
|
||||||
|
<Value>57</Value>
|
||||||
|
<Units>Hz</Units>
|
||||||
|
</LongZCFreq>
|
||||||
|
<TranPeakTime>18:19:31</TranPeakTime>
|
||||||
|
<TranPeakDate>2025-06-25</TranPeakDate>
|
||||||
|
<VertPeakTime>18:19:31</VertPeakTime>
|
||||||
|
<VertPeakDate>2025-06-25</VertPeakDate>
|
||||||
|
<LongPeakTime>18:19:31</LongPeakTime>
|
||||||
|
<LongPeakDate>2025-06-25</LongPeakDate>
|
||||||
|
<PeakVectorSum>
|
||||||
|
<Value>OORANGE</Value>
|
||||||
|
<Units>in/s</Units>
|
||||||
|
</PeakVectorSum>
|
||||||
|
<PeakVectorSumTime>18:19:31</PeakVectorSumTime>
|
||||||
|
<PeakVectorSumDate>2025-06-25</PeakVectorSumDate>
|
||||||
|
<Microphone>Linear Weighting</Microphone>
|
||||||
|
<MicLPSPL>
|
||||||
|
<Value>123.4</Value>
|
||||||
|
<Units>dB(L)</Units>
|
||||||
|
</MicLPSPL>
|
||||||
|
<MicLTime>18:19:31</MicLTime>
|
||||||
|
<MicLDate>2025-06-25</MicLDate>
|
||||||
|
<MicLZCFreq>
|
||||||
|
<Value>85</Value>
|
||||||
|
<Units>Hz</Units>
|
||||||
|
</MicLZCFreq>
|
||||||
|
<TranTestFreq>7.3 Hz.</TranTestFreq>
|
||||||
|
<TranTestRatio>4.0</TranTestRatio>
|
||||||
|
<TranTestResults>Passed</TranTestResults>
|
||||||
|
<VertTestFreq>7.7 Hz.</VertTestFreq>
|
||||||
|
<VertTestRatio>3.6</VertTestRatio>
|
||||||
|
<VertTestResults>Passed</VertTestResults>
|
||||||
|
<LongTestFreq>7.6 Hz.</LongTestFreq>
|
||||||
|
<LongTestRatio>3.6</LongTestRatio>
|
||||||
|
<LongTestResults>Passed</LongTestResults>
|
||||||
|
<MicLTestFreq>0.0 Hz.</MicLTestFreq>
|
||||||
|
<MicLTestAmplitude>0 mv</MicLTestAmplitude>
|
||||||
|
<MicLTestResults>Check</MicLTestResults>
|
||||||
|
<UsbSummaryChannels>
|
||||||
|
</UsbSummaryChannels>
|
||||||
|
<MonitorLog>2025-06-25 18:17:17 - 2025-06-25 18:19:31 "Event Recorded Modem Exit"</MonitorLog>
|
||||||
|
<HistogramData>
|
||||||
|
<HistogramDataColumnTitle>
|
||||||
|
<ColumnTitle> Tran Peak in/s </ColumnTitle>
|
||||||
|
<ColumnTitle> Tran Freq Hz </ColumnTitle>
|
||||||
|
<ColumnTitle> Vert Peak in/s </ColumnTitle>
|
||||||
|
<ColumnTitle> Vert Freq Hz </ColumnTitle>
|
||||||
|
<ColumnTitle> Long Peak in/s </ColumnTitle>
|
||||||
|
<ColumnTitle> Long Freq Hz </ColumnTitle>
|
||||||
|
<ColumnTitle> Geo PVS in/s </ColumnTitle>
|
||||||
|
<ColumnTitle> MicL Peak psi(L) </ColumnTitle>
|
||||||
|
<ColumnTitle> MicL Peak dB(L) </ColumnTitle>
|
||||||
|
<ColumnTitle> MicL Freq Hz </ColumnTitle>
|
||||||
|
</HistogramDataColumnTitle>
|
||||||
|
<HistogramDataIntervals>
|
||||||
|
<Time>2025-06-25 18:19:31</Time>
|
||||||
|
<Row>
|
||||||
|
<Cell>OORANGE</Cell><Cell>85</Cell><Cell>0.305</Cell><Cell>47</Cell><Cell>0.405</Cell><Cell>57</Cell><Cell>OORANGE</Cell><Cell>0.004</Cell><Cell>123.4</Cell><Cell>85</Cell></Row>
|
||||||
|
</HistogramDataIntervals>
|
||||||
|
</HistogramData>
|
||||||
|
<HistogramDataUsbChannels>
|
||||||
|
</HistogramDataUsbChannels>
|
||||||
|
|
||||||
|
</Event>
|
||||||
@@ -23,7 +23,7 @@ from minimateplus.bw_ascii_report import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
FIXTURES = Path(__file__).parent.parent / "decode-re" / "5-8-26"
|
FIXTURES = Path(__file__).parent / "fixtures" / "decode-re-5-8-26"
|
||||||
|
|
||||||
|
|
||||||
def _fixture(event_name: str) -> Path:
|
def _fixture(event_name: str) -> Path:
|
||||||
|
|||||||
@@ -711,3 +711,51 @@ def test_without_a_whole_record_chain_there_is_no_monitor_log():
|
|||||||
i = raw.find(b"\x00\xd4\x3c")
|
i = raw.find(b"\x00\xd4\x3c")
|
||||||
raw[i + 1] = 0xd3 # one byte short: the footer is not proven
|
raw[i + 1] = 0xd3 # one byte short: the footer is not proven
|
||||||
assert decode_blastware_bytes(bytes(raw), name=None).monitor_log is None
|
assert decode_blastware_bytes(bytes(raw), name=None).monitor_log is None
|
||||||
|
|
||||||
|
|
||||||
|
# ── Over range: the unit's true peak beyond full scale ──────────────────────
|
||||||
|
# A channel is over range when the unit's own peak (its summary's min / max,
|
||||||
|
# D.6.12) passes 2,000: 32,000 counts, full scale, on either geophone range;
|
||||||
|
# the mic in counts. Blastware then prints OORANGE for that channel's peak,
|
||||||
|
# for the vector sum when any geophone is over, and its "Out of Range" line when
|
||||||
|
# the mic is. DL2, 2026-11-09: numeric up to 1,991 (geophones) / 1,933 (mic),
|
||||||
|
# OORANGE from 2,001; the vector sum is OORANGE on all 43 events with a
|
||||||
|
# geophone over and on none of the 38 whose vector sum alone passes 10 in/s.
|
||||||
|
|
||||||
|
_OR = "over-range-11-09-26"
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("rel,over", [
|
||||||
|
# (tran, vert, long, mic, vector sum)
|
||||||
|
(f"{_US}/O117I1NK.R70W", (True, True, True, True, True)),
|
||||||
|
(f"{_OR}/O121L4L1.GU0H", (True, False, False, False, True)),
|
||||||
|
(f"{_OR}/K558KD43.NZ0H", (False, False, False, True, False)),
|
||||||
|
(f"{_OR}/M007JC05.OI0H", (False, False, False, False, False)), # vector sum 14.49 in/s, a number
|
||||||
|
(f"{_US}/I145L6UJ.3Y0W", (False, False, False, False, False)),
|
||||||
|
])
|
||||||
|
def test_over_range_is_the_units_peak_beyond_full_scale(rel, over):
|
||||||
|
pv = read_blastware_file(_FIX / rel).peak_values
|
||||||
|
assert (pv.tran_over_range, pv.vert_over_range, pv.long_over_range,
|
||||||
|
pv.mic_over_range, pv.pvs_over_range) == over
|
||||||
|
|
||||||
|
|
||||||
|
# ── The mic's own range ─────────────────────────────────────────────────────
|
||||||
|
# The mic's channel block carries a range byte at the geophones' offset (label
|
||||||
|
# + 29, D.6.4): 1 makes each count an eighth -- 0.25 / 8 Pa. It is set on 7 DL2
|
||||||
|
# events, all of them Blastware's ÷8 values, and on none of the 70,026 others,
|
||||||
|
# independently of the geophone range (28 events have Sensitive geophones and
|
||||||
|
# a range-0 mic). SFM read those 7 mics 8x high (2026-11-09).
|
||||||
|
|
||||||
|
def test_a_range_1_mic_reads_an_eighth():
|
||||||
|
ev = read_blastware_file(_FIX / f"{_OR}/K557J1XQ.GF0W")
|
||||||
|
assert ev.mic_range == 1
|
||||||
|
peak = max(abs(c) for c in ev.raw_samples["MicL"]) # 6 counts
|
||||||
|
# Blastware: 79.4 dB(L) = 6 / 8 counts; as a range-0 mic it would be 97.5
|
||||||
|
assert ev.peak_values.micl == pytest.approx(peak * 0.25 / 8 / 6894.757, rel=1e-6)
|
||||||
|
|
||||||
|
|
||||||
|
def test_a_range_0_mic_is_unchanged():
|
||||||
|
ev = read_blastware_file(_FIX / f"{_US}/I145L6UJ.3Y0W")
|
||||||
|
assert ev.mic_range == 0
|
||||||
|
peak = max(abs(c) for c in ev.raw_samples["MicL"])
|
||||||
|
assert ev.peak_values.micl == pytest.approx(peak * 0.25 / 6894.757, rel=1e-6)
|
||||||
@@ -28,8 +28,9 @@ def test_find_pairs_dedupes_and_pairs(tmp_path):
|
|||||||
def test_check_event_rows_and_attrs():
|
def test_check_event_rows_and_attrs():
|
||||||
out = run.check_event("M007HVWF.K30W", str(FIX / "M007HVWF.K30W"), str(FIX / "M007HVWF_K30W_XML.XML"))
|
out = run.check_event("M007HVWF.K30W", str(FIX / "M007HVWF.K30W"), str(FIX / "M007HVWF_K30W_XML.XML"))
|
||||||
assert out["attrs"]["range"] == "1.250" and out["attrs"]["model"] == "MiniMate Plus"
|
assert out["attrs"]["range"] == "1.250" and out["attrs"]["model"] == "MiniMate Plus"
|
||||||
# clipped at its own 1.250 ceiling: accepted under the saturation carve-out
|
# clipped at its own 1.250 ceiling: Blastware's OORANGE, matched by the unit's
|
||||||
assert ["TranPPV", "accepted"] in [r[:2] for r in out["results"]]
|
# own peak since 2026-11-09 (it was accepted under the saturation carve-out)
|
||||||
|
assert ["TranPPV", "match"] in [r[:2] for r in out["results"]]
|
||||||
|
|
||||||
|
|
||||||
def test_bad_input_is_one_error_row(tmp_path):
|
def test_bad_input_is_one_error_row(tmp_path):
|
||||||
@@ -129,7 +130,7 @@ def test_compare_to_marks_the_summary(tmp_path):
|
|||||||
def test_file_prints_one_event(tmp_path, capsys):
|
def test_file_prints_one_event(tmp_path, capsys):
|
||||||
assert run.main([str(FIX), str(FIX), "--file", "M007HVWF.K30W"]) == 0
|
assert run.main([str(FIX), str(FIX), "--file", "M007HVWF.K30W"]) == 0
|
||||||
out = capsys.readouterr().out
|
out = capsys.readouterr().out
|
||||||
assert any("TranPPV" in line and "accepted" in line for line in out.splitlines())
|
assert any("TranPPV" in line and "OORANGE" in line for line in out.splitlines())
|
||||||
|
|
||||||
|
|
||||||
# ── Final review fixes ──────────────────────────────────────────────────────
|
# ── Final review fixes ──────────────────────────────────────────────────────
|
||||||
|
|||||||
+136
-14
@@ -109,19 +109,34 @@ def test_mic_units_pick_the_conversion():
|
|||||||
from minimateplus.decode_check_carveouts import CARVEOUTS # noqa: E402
|
from minimateplus.decode_check_carveouts import CARVEOUTS # noqa: E402
|
||||||
|
|
||||||
|
|
||||||
def test_clipped_normal_range_is_accepted():
|
def _no_unit_peaks(side):
|
||||||
|
"""As for a file without the unit's summary: no over-range flags, so the
|
||||||
|
saturation carve-out decides (since 2026-11-09 the flags match first)."""
|
||||||
|
pv = side.event.peak_values
|
||||||
|
for ch in ("tran", "vert", "long", "mic", "pvs"):
|
||||||
|
setattr(pv, f"{ch}_over_range", False)
|
||||||
|
return side
|
||||||
|
|
||||||
|
|
||||||
|
def _results_without_unit_peaks(stem):
|
||||||
|
raw = (FIX / stem).read_bytes()
|
||||||
|
ref = parse_xml_report_file(FIX / (stem.replace(".", "_") + "_XML.XML"))
|
||||||
|
return {r.field: r for r in compare(_no_unit_peaks(sfm_side(raw)), ref, CARVEOUTS)}
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("stem,clipped", [
|
||||||
# Blastware: Tran 5.445, Vert 6.310, Long OORANGE, PVS OORANGE; SFM Long 10.005, PVS 11.55
|
# Blastware: Tran 5.445, Vert 6.310, Long OORANGE, PVS OORANGE; SFM Long 10.005, PVS 11.55
|
||||||
res = _results("T438HGTZ.B30W", CARVEOUTS)
|
("T438HGTZ.B30W", ("LongPPV", "PeakVectorSum")),
|
||||||
assert res["TranPPV"].verdict == "match" and res["VertPPV"].verdict == "match"
|
|
||||||
for f in ("LongPPV", "PeakVectorSum"):
|
|
||||||
assert (res[f].verdict, res[f].carveout) == ("accepted", "saturation")
|
|
||||||
|
|
||||||
|
|
||||||
def test_a_clipped_sensitive_event_is_accepted_at_its_own_ceiling():
|
|
||||||
# SFM reads the 1.250 range from the file; the clipped channels sit at 1.2506.
|
# SFM reads the 1.250 range from the file; the clipped channels sit at 1.2506.
|
||||||
res = _results("M007HVWF.K30W", CARVEOUTS)
|
("M007HVWF.K30W", ("TranPPV", "PeakVectorSum")),
|
||||||
assert res["GeoRange"].verdict == "match" and res["samples.Tran"].verdict == "match"
|
])
|
||||||
for f in ("TranPPV", "PeakVectorSum"):
|
def test_a_clipped_event_matches_by_the_units_own_peak(stem, clipped):
|
||||||
|
res = _results(stem, CARVEOUTS)
|
||||||
|
for f in clipped:
|
||||||
|
assert res[f].verdict == "match", (f, res[f])
|
||||||
|
# Without the unit's summary the saturation carve-out still accepts them.
|
||||||
|
res = _results_without_unit_peaks(stem)
|
||||||
|
for f in clipped:
|
||||||
assert (res[f].verdict, res[f].carveout) == ("accepted", "saturation")
|
assert (res[f].verdict, res[f].carveout) == ("accepted", "saturation")
|
||||||
|
|
||||||
|
|
||||||
@@ -129,7 +144,7 @@ def test_the_carveout_never_accepts_an_8x_value():
|
|||||||
# What SFM produced while it assumed Normal on a Sensitive unit: 8x high.
|
# What SFM produced while it assumed Normal on a Sensitive unit: 8x high.
|
||||||
# The saturation rule must leave it a mismatch.
|
# The saturation rule must leave it a mismatch.
|
||||||
raw = (FIX / "M007HVWF.K30W").read_bytes()
|
raw = (FIX / "M007HVWF.K30W").read_bytes()
|
||||||
side = sfm_side(raw)
|
side = _no_unit_peaks(sfm_side(raw)) # the carve-out's guard, not the unit's peaks
|
||||||
side.values.update(TranPPV=10.005, VertPPV=10.005, LongPPV=10.005, PeakVectorSum=17.33)
|
side.values.update(TranPPV=10.005, VertPPV=10.005, LongPPV=10.005, PeakVectorSum=17.33)
|
||||||
side.geo_ips_per_count = 10.0 / 32000
|
side.geo_ips_per_count = 10.0 / 32000
|
||||||
res = {r.field: r for r in compare(side, parse_xml_report_file(FIX / "M007HVWF_K30W_XML.XML"),
|
res = {r.field: r for r in compare(side, parse_xml_report_file(FIX / "M007HVWF_K30W_XML.XML"),
|
||||||
@@ -157,7 +172,7 @@ def test_pvs_carveout_needs_the_clipped_channel_at_the_ceiling():
|
|||||||
raw = (FIX / "M007HVWF.K30W").read_bytes()
|
raw = (FIX / "M007HVWF.K30W").read_bytes()
|
||||||
ref = parse_xml_report_file(FIX / "M007HVWF_K30W_XML.XML")
|
ref = parse_xml_report_file(FIX / "M007HVWF_K30W_XML.XML")
|
||||||
ref.scalars.update(TranPPV="0.157", VertPPV="0.157", LongPPV="0.157")
|
ref.scalars.update(TranPPV="0.157", VertPPV="0.157", LongPPV="0.157")
|
||||||
side = sfm_side(raw)
|
side = _no_unit_peaks(sfm_side(raw))
|
||||||
side.values.update(TranPPV=1.256, PeakVectorSum=2.0)
|
side.values.update(TranPPV=1.256, PeakVectorSum=2.0)
|
||||||
res = {r.field: r for r in compare(side, ref, CARVEOUTS)}
|
res = {r.field: r for r in compare(side, ref, CARVEOUTS)}
|
||||||
assert res["PeakVectorSum"].verdict == "mismatch"
|
assert res["PeakVectorSum"].verdict == "mismatch"
|
||||||
@@ -314,7 +329,11 @@ def _pvs_oorange(unclamp=False):
|
|||||||
row = list(row)
|
row = list(row)
|
||||||
row[cols.index("Vert Peak in/s")] = "0.500"
|
row[cols.index("Vert Peak in/s")] = "0.500"
|
||||||
ref.intervals[0] = (t, row)
|
ref.intervals[0] = (t, row)
|
||||||
res = {r.field: r for r in compare(sfm_side((hb / "T190LD5Q.LD0H").read_bytes()), ref, CARVEOUTS)}
|
side = sfm_side((hb / "T190LD5Q.LD0H").read_bytes())
|
||||||
|
# The carve-out's own path: SFM's numeric interval sums, as before it
|
||||||
|
# rendered OORANGE itself (2026-11-09).
|
||||||
|
side.interval_values["Geo PVS in/s"] = list(side.event.interval_pvs)
|
||||||
|
res = {r.field: r for r in compare(side, ref, CARVEOUTS)}
|
||||||
return res["intervals.Geo PVS in/s"]
|
return res["intervals.Geo PVS in/s"]
|
||||||
|
|
||||||
|
|
||||||
@@ -326,6 +345,24 @@ def test_an_oorange_interval_vector_sum_is_saturation():
|
|||||||
assert (r.verdict, r.carveout) == ("accepted", "saturation")
|
assert (r.verdict, r.carveout) == ("accepted", "saturation")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("path,columns", [
|
||||||
|
# a Vert interval past full scale: its peak and the interval's vector sum
|
||||||
|
(FIX.parent / "histogram-intervals-11-03-26" / "T190LD5Q.LD0H", ("Vert Peak in/s", "Geo PVS in/s")),
|
||||||
|
# a mic interval past full scale (2,001 counts)
|
||||||
|
(FIX.parent / "over-range-11-09-26" / "K558KD43.NZ0H", ("MicL Peak dB(L)", "MicL Peak psi(L)")),
|
||||||
|
])
|
||||||
|
def test_interval_over_range_matches_blastware(path, columns):
|
||||||
|
# Inside an interval the rule is the event's: a peak past 2,000 units (the
|
||||||
|
# mic in counts) is OORANGE, and the vector sum when any geophone is. DL2:
|
||||||
|
# numeric up to 1,846 / 1,414, OORANGE from 2,001; vector sums 16 / 16
|
||||||
|
# OORANGE with a geophone over, 2,862 / 2,862 numeric without (2026-11-09).
|
||||||
|
ref = parse_xml_report_file(path.with_name(path.name.replace(".", "_", 1) + "_XML.XML"))
|
||||||
|
res = {r.field: r for r in compare(sfm_side(path.read_bytes()), ref, CARVEOUTS)}
|
||||||
|
for c in columns:
|
||||||
|
if c in (ref.interval_columns or []):
|
||||||
|
assert res[f"intervals.{c}"].verdict == "match", (c, res[f"intervals.{c}"])
|
||||||
|
|
||||||
|
|
||||||
def test_an_oorange_vector_sum_needs_a_clamped_channel_in_that_interval():
|
def test_an_oorange_vector_sum_needs_a_clamped_channel_in_that_interval():
|
||||||
assert _pvs_oorange(unclamp=True).verdict == "mismatch"
|
assert _pvs_oorange(unclamp=True).verdict == "mismatch"
|
||||||
|
|
||||||
@@ -431,3 +468,88 @@ def test_the_monitor_log_matches_blastware(path):
|
|||||||
ref = parse_xml_report_file(path.with_name(path.name.replace(".", "_", 1) + "_XML.XML"))
|
ref = parse_xml_report_file(path.with_name(path.name.replace(".", "_", 1) + "_XML.XML"))
|
||||||
res = {r.field: r for r in compare(sfm_side(path.read_bytes()), ref, CARVEOUTS)}
|
res = {r.field: r for r in compare(sfm_side(path.read_bytes()), ref, CARVEOUTS)}
|
||||||
assert res["MonitorLog"].verdict == "match", res["MonitorLog"]
|
assert res["MonitorLog"].verdict == "match", res["MonitorLog"]
|
||||||
|
|
||||||
|
|
||||||
|
# ── Over range (2026-11-09) ─────────────────────────────────────────────────
|
||||||
|
_OR = FIX.parent / "over-range-11-09-26"
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("path", [
|
||||||
|
_US / "O117I1NK.R70W", # everything over, the "Out of Range" line
|
||||||
|
_OR / "O121L4L1.GU0H", # Tran over: its PPV and the vector sum
|
||||||
|
_OR / "K558KD43.NZ0H", # the mic over, the "Out of Range" line
|
||||||
|
_OR / "M007JC05.OI0H", # vector sum 14.49 in/s, printed as a number
|
||||||
|
])
|
||||||
|
def test_over_range_matches_blastware(path):
|
||||||
|
ref = parse_xml_report_file(path.with_name(path.name.replace(".", "_", 1) + "_XML.XML"))
|
||||||
|
res = {r.field: r for r in compare(sfm_side(path.read_bytes()), ref, CARVEOUTS)}
|
||||||
|
for f in ("TranPPV", "VertPPV", "LongPPV", "PeakVectorSum", "MicLPSPL", "OORANGE"):
|
||||||
|
if ref.scalars.get(f) is not None:
|
||||||
|
assert res[f].verdict == "match", (f, res[f])
|
||||||
|
|
||||||
|
|
||||||
|
def test_an_over_range_flag_against_a_printed_number_is_a_mismatch():
|
||||||
|
path = _OR / "M007JC05.OI0H"
|
||||||
|
ref = parse_xml_report_file(path.with_name(path.name.replace(".", "_", 1) + "_XML.XML"))
|
||||||
|
sfm = sfm_side(path.read_bytes())
|
||||||
|
sfm.event.peak_values.pvs_over_range = True # SFM would print OORANGE; Blastware printed 14.49
|
||||||
|
res = {r.field: r for r in compare(sfm, ref, CARVEOUTS)}
|
||||||
|
assert res["PeakVectorSum"].verdict == "mismatch"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def test_a_range_1_mic_matches_blastware():
|
||||||
|
# Its mic range byte is 1: every count is an eighth (79.4 dB(L), not 97.5).
|
||||||
|
path = _OR / "K557J1XQ.GF0W"
|
||||||
|
ref = parse_xml_report_file(path.with_name(path.name.replace(".", "_", 1) + "_XML.XML"))
|
||||||
|
res = {r.field: r for r in compare(sfm_side(path.read_bytes()), ref, CARVEOUTS)}
|
||||||
|
for f in ("MicLPSPL", "samples.MicL"):
|
||||||
|
assert res[f].verdict == "match", (f, res[f])
|
||||||
|
|
||||||
|
|
||||||
|
# ── The unit Blastware printed, field by field (2026-11-09) ─────────────────
|
||||||
|
# A report's event Units line does not always say what its mic values are in:
|
||||||
|
# 7 DL2 reports print the mic peak in dB under a psi line, 3 the reverse, and
|
||||||
|
# S353JTHU prints its sample table in dB under psi on both. The peak carries
|
||||||
|
# its own unit, and a mic table's cells are unmistakable (dB >= 60, psi < 1).
|
||||||
|
_UL = FIX.parent / "mic-units-11-09-26"
|
||||||
|
|
||||||
|
|
||||||
|
def _res(path, side=None):
|
||||||
|
ref = parse_xml_report_file(path.with_name(path.name.replace(".", "_", 1) + "_XML.XML"))
|
||||||
|
return {r.field: r for r in compare(side or sfm_side(path.read_bytes()), ref, CARVEOUTS)}
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("path,field", [
|
||||||
|
(_UL / "K441L9IN.OT0W", "MicLPSPL"), # psi line; the peak in dB, saying so
|
||||||
|
(_UL / "K888JOU7.8K0H", "MicLPSPL"), # the same on a histogram
|
||||||
|
])
|
||||||
|
def test_a_mic_peak_is_read_in_its_own_unit(path, field):
|
||||||
|
assert _res(path)[field].verdict == "match", _res(path)[field]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("path", [
|
||||||
|
_UL / "K441L9IN.OT0W", # a dB table with psi cells ("0.000", "-0.000") for counts of 1 to 3
|
||||||
|
_UL / "S353JTHU.DT0W", # psi rows, then dB rows, all under a psi line
|
||||||
|
])
|
||||||
|
def test_a_mic_column_mixing_dB_and_psi_is_accepted(path):
|
||||||
|
r = _res(path)["samples.MicL"]
|
||||||
|
assert (r.verdict, r.carveout) == ("accepted", "mic-units-mixed"), r
|
||||||
|
|
||||||
|
|
||||||
|
def test_the_mixed_units_carveout_needs_every_cell_in_one_unit_or_the_other():
|
||||||
|
path = _UL / "S353JTHU.DT0W"
|
||||||
|
ref = parse_xml_report_file(path.with_name(path.name.replace(".", "_", 1) + "_XML.XML"))
|
||||||
|
i = ref.channels.index("MicL")
|
||||||
|
ref.sample_rows[0][i] = "50.00" # neither SFM's dB nor its psi
|
||||||
|
res = {r.field: r for r in compare(sfm_side(path.read_bytes()), ref, CARVEOUTS)}
|
||||||
|
assert res["samples.MicL"].verdict == "mismatch"
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("path,column", [
|
||||||
|
(_UL / "I145HKWT.DY0H", "MicL Peak psi(L)"), # row 672: 95.92 in both mic columns (count 5: dB)
|
||||||
|
(_UL / "S353K894.OE0H", "MicL Peak dB(L)"), # rows 106, 608: 0.000 in both (count 2: psi)
|
||||||
|
])
|
||||||
|
def test_an_interval_printing_one_unit_in_both_mic_columns_is_accepted(path, column):
|
||||||
|
r = _res(path)[f"intervals.{column}"]
|
||||||
|
assert (r.verdict, r.carveout) == ("accepted", "mic-units-mixed"), r
|
||||||
@@ -410,8 +410,8 @@ def test_save_imported_bw_with_paired_report(tmp_path: Path):
|
|||||||
|
|
||||||
# Use one of the real BW ASCII exports as the paired report.
|
# Use one of the real BW ASCII exports as the paired report.
|
||||||
report_path = (
|
report_path = (
|
||||||
Path(__file__).parent.parent
|
Path(__file__).parent
|
||||||
/ "decode-re" / "5-8-26" / "event-c" / "M529LK44.AB0.TXT"
|
/ "fixtures" / "decode-re-5-8-26" / "event-c" / "M529LK44.AB0.TXT"
|
||||||
)
|
)
|
||||||
if not report_path.exists():
|
if not report_path.exists():
|
||||||
import pytest as _pt
|
import pytest as _pt
|
||||||
@@ -498,8 +498,9 @@ def test_save_imported_bw_without_report_works_unchanged(tmp_path: Path):
|
|||||||
sc = store.load_sidecar("BE11529", fname)
|
sc = store.load_sidecar("BE11529", fname)
|
||||||
assert sc is not None
|
assert sc is not None
|
||||||
assert "bw_report" not in sc # block is absent without a report
|
assert "bw_report" not in sc # block is absent without a report
|
||||||
# Synthetic event has zero samples → peaks all zero (was true before this change)
|
# Synthetic event has zero samples: the peaks stay unknown (None), never a
|
||||||
assert sc["peak_values"]["transverse"] == 0.0
|
# fabricated 0.0 that a backfill could write over real peaks (fa9d3cd).
|
||||||
|
assert sc["peak_values"]["transverse"] is None
|
||||||
|
|
||||||
|
|
||||||
def test_save_imported_bw_round_trip(tmp_path: Path):
|
def test_save_imported_bw_round_trip(tmp_path: Path):
|
||||||
|
|||||||
@@ -0,0 +1,66 @@
|
|||||||
|
"""Line endings (2026-11-12): every tracked text file outside the fixtures is LF.
|
||||||
|
|
||||||
|
.gitattributes defaults every file to `text=auto eol=lf`, so git stores and checks
|
||||||
|
out text as LF whatever wrote it, file types not invented yet included. Binaries
|
||||||
|
are never converted. tests/fixtures/** is -text: recorded bytes (Blastware's own
|
||||||
|
reports and exports, captures, event files) stay exactly as recorded, CRLF and all.
|
||||||
|
|
||||||
|
The protocol reference and seismo_lab.py were CRLF until 5dff54b, so any rewrite
|
||||||
|
outside the Edit tool turned them into whole-file diffs, and merges into them had
|
||||||
|
to be resolved byte by byte.
|
||||||
|
"""
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
ROOT = Path(__file__).resolve().parent.parent
|
||||||
|
FIXTURES = "tests/fixtures/"
|
||||||
|
|
||||||
|
pytestmark = pytest.mark.skipif(
|
||||||
|
shutil.which("git") is None or not (ROOT / ".git").exists(), reason="not a git checkout")
|
||||||
|
|
||||||
|
|
||||||
|
def _git(*args: str) -> str:
|
||||||
|
return subprocess.run(["git", "-C", str(ROOT), *args],
|
||||||
|
capture_output=True, text=True, check=True).stdout
|
||||||
|
|
||||||
|
|
||||||
|
def crlf_files(include_fixtures: bool = False) -> list:
|
||||||
|
"""Tracked files stored (in the index) with CRLF or mixed line endings."""
|
||||||
|
out = []
|
||||||
|
for line in _git("ls-files", "--eol").splitlines():
|
||||||
|
meta, path = line.split("\t", 1)
|
||||||
|
if meta.split()[0] in ("i/crlf", "i/mixed") and (include_fixtures or not path.startswith(FIXTURES)):
|
||||||
|
out.append(path)
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
def attr(name: str, path: str) -> str:
|
||||||
|
return _git("check-attr", name, "--", path).rsplit(": ", 1)[-1].strip()
|
||||||
|
|
||||||
|
|
||||||
|
def test_no_tracked_file_outside_the_fixtures_is_crlf():
|
||||||
|
assert crlf_files() == []
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("path", ["sfm/new_module.py", "docs/notes.md", "Dockerfile", "events.jsonl",
|
||||||
|
".gitignore", "deploy/sfm.service", "a.kind-of-file-not-invented-yet"])
|
||||||
|
def test_any_text_file_is_stored_as_lf(path):
|
||||||
|
assert (attr("text", path), attr("eol", path)) == ("auto", "lf")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("path", ["tests/fixtures/minimate-bench-10-26-26-blastware/blastware/K441LTOG.000",
|
||||||
|
"tests/fixtures/decode-checker-10-29-26/M007HVWF_K30W_XML.XML",
|
||||||
|
"tests/fixtures/new-bench/README.md"])
|
||||||
|
def test_fixtures_are_never_converted(path):
|
||||||
|
assert attr("text", path) == "unset"
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("path", ["parsers/raw_bw.bin", "analysis_idf/thor_report.pdf", "docs/photo.png",
|
||||||
|
"docs/photo.jpg", "out/event.h5", "out/event.a5.pkl", "sfm/data/cache.db"])
|
||||||
|
def test_binaries_are_never_converted(path):
|
||||||
|
assert attr("text", path) == "unset"
|
||||||
@@ -0,0 +1,175 @@
|
|||||||
|
"""#58: a reply whose checksum byte is 02, 03 or 04 arrives as `10 X`.
|
||||||
|
|
||||||
|
The unit escapes 02, 03, 04 and 10 in a reply, the checksum included. The
|
||||||
|
parser kept the `10` of an escaped checksum as the frame's last data byte, so
|
||||||
|
the data came out one byte long, ending in a lone 0x10 (measured on BE9441's
|
||||||
|
1A read at the bench, 2026-11-04).
|
||||||
|
|
||||||
|
Across every recorded reply (60 captures, March to October 2026), SUM8 of the
|
||||||
|
unescaped payload is the checksum on 7,747 of 7,747. 272 checksums arrived
|
||||||
|
escaped, and every one checks as an escape pair: the `10` is never data.
|
||||||
|
"""
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import os
|
||||||
|
import pickle
|
||||||
|
import sys
|
||||||
|
from dataclasses import replace
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
|
import minimateplus.protocol as mp # noqa: E402
|
||||||
|
from minimate_replay import fast_clock # noqa: E402
|
||||||
|
from minimateplus.blastware_file import _frame_body_bytes, write_blastware_file # noqa: E402
|
||||||
|
from minimateplus.client import _decode_monitor_status # noqa: E402
|
||||||
|
from minimateplus.framing import S3FrameParser, unescape_reply # noqa: E402
|
||||||
|
from minimateplus.models import Event # noqa: E402
|
||||||
|
from minimateplus.protocol import is_call_home_block # noqa: E402
|
||||||
|
from sfm.waveform_store import A5_PICKLE_VERSION, WaveformStore, _frame_to_dict # noqa: E402
|
||||||
|
from test_5a_blastware_walk import ByAddress # noqa: E402
|
||||||
|
|
||||||
|
FIX = Path(__file__).parent / "fixtures"
|
||||||
|
|
||||||
|
|
||||||
|
def _escape(b: bytes) -> bytes:
|
||||||
|
"""The unit's encoding: 10 before 02, 03, 04 and 10."""
|
||||||
|
return b"".join(bytes([0x10, x]) if x in (0x02, 0x03, 0x04, 0x10) else bytes([x]) for x in b)
|
||||||
|
|
||||||
|
|
||||||
|
def reply(sub: int, data: bytes, page: bytes = b"\x00\x00") -> bytes:
|
||||||
|
"""A reply as the unit sends it: header, data and SUM8 checksum, escaped."""
|
||||||
|
payload = bytes([0x00, 0x10, sub]) + page + data
|
||||||
|
return b"\x10\x02" + _escape(payload + bytes([sum(payload) & 0xFF])) + b"\x03"
|
||||||
|
|
||||||
|
|
||||||
|
def data_for(chk: int, last: int, sub: int = 0xE3) -> bytes:
|
||||||
|
"""Data ending in `last` whose reply checksum comes out as `chk`."""
|
||||||
|
base = bytes(11) + b"#58"
|
||||||
|
fill = (chk - (0x10 + sub + sum(base) + last)) & 0xFF
|
||||||
|
return base + bytes([fill, last])
|
||||||
|
|
||||||
|
|
||||||
|
def one(wire: bytes):
|
||||||
|
frames = S3FrameParser().feed(wire)
|
||||||
|
assert len(frames) == 1
|
||||||
|
return frames[0]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("chk", [0x02, 0x03, 0x04])
|
||||||
|
def test_an_escaped_checksum_leaves_nothing_in_the_data(chk):
|
||||||
|
data = data_for(chk, last=0x55)
|
||||||
|
f = one(reply(0xE3, data))
|
||||||
|
assert (unescape_reply(f.data), f.chk_byte) == (data, chk)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("chk", [0x02, 0x03, 0x04])
|
||||||
|
def test_a_last_data_byte_of_0x10_survives_an_escaped_checksum(chk):
|
||||||
|
# Wire `10 10 10 0X`: a real 0x10, then the escaped checksum. Not in any
|
||||||
|
# recording; one A5 chunk in ten ends in a real 0x10.
|
||||||
|
data = data_for(chk, last=0x10)
|
||||||
|
f = one(reply(0xE3, data))
|
||||||
|
assert (unescape_reply(f.data), f.chk_byte) == (data, chk)
|
||||||
|
|
||||||
|
|
||||||
|
REPLY_RECORDINGS = ["minimate-bench-10-25-26/BE9441_event0_01110000_rx.bin",
|
||||||
|
"minimate-bench-10-25-26/BE9441_event1_0111646a_rx.bin",
|
||||||
|
"minimate-bench-10-26-26-blastware/unit_replies.bin",
|
||||||
|
"minimate-bench-10-26-26-histogram/unit_replies.bin"]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("name", REPLY_RECORDINGS)
|
||||||
|
def test_every_recorded_reply_checks(name):
|
||||||
|
# BE9441, October 2026: 2,509 replies, 62 with an escaped checksum.
|
||||||
|
frames = S3FrameParser().feed((FIX / name).read_bytes())
|
||||||
|
assert frames
|
||||||
|
assert [i for i, f in enumerate(frames) if not f.checksum_valid] == []
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("chk", [0x10, 0x00, 0x55])
|
||||||
|
def test_any_other_checksum_reads_as_before(chk):
|
||||||
|
data = data_for(chk, last=0x10)
|
||||||
|
f = one(reply(0xE3, data))
|
||||||
|
assert (unescape_reply(f.data), f.chk_byte) == (data, chk)
|
||||||
|
|
||||||
|
|
||||||
|
# Two 1C replies recorded from BE11529 on 2026-04-08, checksums 03 and 02 escaped.
|
||||||
|
# The battery and memory are counted from the end, so the stray byte read them as
|
||||||
|
# 430.08 V / 251,654,656 bytes total.
|
||||||
|
STATUS_REPLIES = [
|
||||||
|
("4-8-26/mid-monitor/raw_s3_20260408_181417",
|
||||||
|
"1002001010e300002c0000000000000000000000100408100407ea00120e2c000000000000010107cb"
|
||||||
|
"00060000010107cb0015000000001002a8000efff2000e9d80100303", 6.80, 983026, 957824),
|
||||||
|
("4-8-26/raw_s3_20260408_013431",
|
||||||
|
"1002001010e300002c0000000000000000000000100408100407ea00012312000000000000010107cb"
|
||||||
|
"00060000010107cb0015000000001002a4000efff2000e9e98100203", 6.76, 983026, 958104),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("capture,wire,volts,total,free", STATUS_REPLIES)
|
||||||
|
def test_a_recorded_status_reply_with_an_escaped_checksum_reads_whole(capture, wire, volts, total, free):
|
||||||
|
st = _decode_monitor_status(one(bytes.fromhex(wire)).data)
|
||||||
|
assert (st.battery_v, st.memory_total, st.memory_free) == (volts, total, free)
|
||||||
|
|
||||||
|
|
||||||
|
def test_a_call_home_read_with_an_escaped_checksum_is_a_call_home_block():
|
||||||
|
# BE11529's 2C reply (2026-04-20), its block untouched; one header pad byte is
|
||||||
|
# set so the checksum comes out 02. The stray byte made it 125 bytes, and SFM
|
||||||
|
# refused the unit as monitoring.
|
||||||
|
recorded = S3FrameParser().feed(
|
||||||
|
(FIX / "s3-call-home-bw" / "raw_s3_20260420_162148_pull_call_home_options.bin").read_bytes())
|
||||||
|
data = bytearray(unescape_reply(next(f for f in recorded if f.sub == 0xD3 and len(f.data) > 11).data))
|
||||||
|
data[10] = (0x02 - (0x10 + 0xD3 + sum(data) - data[10])) & 0xFF
|
||||||
|
f = one(reply(0xD3, bytes(data)))
|
||||||
|
assert f.chk_byte == 0x02
|
||||||
|
assert is_call_home_block(f.data[11:])
|
||||||
|
assert unescape_reply(f.data[11:]) == bytes(data[11:])
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("chk", [0x02, 0x03, 0x04])
|
||||||
|
def test_the_file_builder_keeps_a_real_0x10_before_an_escaped_checksum(chk):
|
||||||
|
# An A5 chunk reply: 12 header bytes, then the body bytes it carries.
|
||||||
|
data = data_for(chk, last=0x10, sub=0xA5)
|
||||||
|
f = one(reply(0xA5, data))
|
||||||
|
assert _frame_body_bytes(f, 12) == data[12:]
|
||||||
|
|
||||||
|
|
||||||
|
# -- the waveform store's .a5.pkl frames, saved by the parser as it was ---------------
|
||||||
|
|
||||||
|
def _write_pickle(store: WaveformStore, name: str, version: int, frames: list) -> None:
|
||||||
|
_bw, a5_path = store.paths_for("BE9441", name)
|
||||||
|
a5_path.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
with a5_path.open("wb") as fp:
|
||||||
|
pickle.dump({"version": version, "frames": [_frame_to_dict(f) for f in frames]}, fp)
|
||||||
|
|
||||||
|
|
||||||
|
def test_a_pickle_saved_before_58_still_builds_blastwares_file(tmp_path, monkeypatch):
|
||||||
|
# BE9441's K441LTOG.000 (10-26 recording): two of its chunk replies have an
|
||||||
|
# escaped checksum. A pickle from before #58 holds their stray 0x10s.
|
||||||
|
fast_clock(monkeypatch)
|
||||||
|
frames = mp.MiniMateProtocol(ByAddress()).read_bulk_waveform_stream(
|
||||||
|
bytes.fromhex("0112a0b6"), stop_after_metadata=False, include_terminator=True, strict=True)
|
||||||
|
old = [replace(f, data=f.data + b"\x10") if f.chk_byte in (0x02, 0x03, 0x04) else f
|
||||||
|
for f in frames]
|
||||||
|
assert sum(o.data != f.data for o, f in zip(old, frames)) == 2
|
||||||
|
store = WaveformStore(tmp_path / "waveforms")
|
||||||
|
_write_pickle(store, "K441LTOG.000", 1, old)
|
||||||
|
|
||||||
|
loaded = store.load_a5("BE9441", "K441LTOG.000")
|
||||||
|
assert [f.data for f in loaded] == [f.data for f in frames]
|
||||||
|
ev = Event(index=0)
|
||||||
|
ev.timestamp = None
|
||||||
|
write_blastware_file(ev, loaded, tmp_path / "K441LTOG.000")
|
||||||
|
bw = FIX / "minimate-bench-10-26-26-blastware" / "blastware" / "K441LTOG.000"
|
||||||
|
assert (tmp_path / "K441LTOG.000").read_bytes() == bw.read_bytes()
|
||||||
|
|
||||||
|
|
||||||
|
def test_a_pickle_saved_now_loads_as_saved(tmp_path):
|
||||||
|
# A real 0x10 before an escaped checksum: the conversion is for old pickles only.
|
||||||
|
f = one(reply(0xA5, data_for(0x02, last=0x10, sub=0xA5)))
|
||||||
|
store = WaveformStore(tmp_path / "waveforms")
|
||||||
|
_write_pickle(store, "K441LTOG.000", A5_PICKLE_VERSION, [f])
|
||||||
|
assert store.load_a5("BE9441", "K441LTOG.000")[0].data == f.data
|
||||||
@@ -512,6 +512,19 @@ def test_mic_count_to_db_v70_peak():
|
|||||||
assert abs(mic_count_to_db(-813) - (-140.14)) < 0.1
|
assert abs(mic_count_to_db(-813) - (-140.14)) < 0.1
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("count,printed", [
|
||||||
|
# Blastware's dB offset is pinned to [81.9382058, 81.9382266] by every DL2
|
||||||
|
# count it printed -- 1,704 in sample tables, 520 in histogram intervals,
|
||||||
|
# 494 histogram peaks (2026-11-09). These three counts bound it:
|
||||||
|
(129, "124.2"), # from below: the physical 81.93820 prints 124.1
|
||||||
|
(463, "135.2"), # from above in intervals and peaks: 81.9384 prints 135.3
|
||||||
|
(677, "138.5"), # from above in the sample tables
|
||||||
|
])
|
||||||
|
def test_mic_db_prints_as_blastware_at_its_rounding_edges(count, printed):
|
||||||
|
from minimateplus.decode_check import matches_printed
|
||||||
|
assert matches_printed(mic_count_to_db(count), printed), mic_count_to_db(count)
|
||||||
|
|
||||||
|
|
||||||
# ── End-to-end: decode_a5_frames (production entry point) ───────────────────
|
# ── End-to-end: decode_a5_frames (production entry point) ───────────────────
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user