Files
aimsight-optimizer/sessions/LENZSPITZE_2026-10-23T2355_2026-11-01T1140_20261118T1049Z/summary.md
T

96 lines
8.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# optimize: LENZSPITZE, 2026-10-23 → 2026-11-02
**Result**: modification kept
**Tools changed**: scripts/thumbnails.py
## The range
LENZSPITZE 2026-10-23T00:00Z → 2026-11-02T00:00Z, 63 labels, before → end (found, correct):
- Displacement: — → —; 0/2943 (0 %) → 0/27 (0 %)
- No data: 4/6 (67 %) → 4/6 (67 %); 4/4 (100 %) → 4/4 (100 %)
- Obstruction: 17/58 (29 %) → 17/58 (29 %); 17/486 (3 %) → 17/486 (3 %)
- Perturbation: 1/6 (17 %) → 1/6 (17 %); 1/426 (0 %) → 1/426 (0 %)
- Thermal displacement: 1342/1469 (91 %) → 1342/1469 (91 %); 1342/2611 (51 %) → 1342/2611 (51 %)
- Visibility: 817/1166 (70 %) → 817/1166 (70 %); 817/875 (93 %) → 817/875 (93 %)
## Elsewhere
```
Total Displacement correct 18 → 41 %
NORDEND Displacement found 100 → 0 % (4 instants lost)
0 regression(s); complexity: 611 code lines, 48 constants → 606 code lines, 46 constants
```
## What changed
- S1 (`f623b79`), `scripts/displacement.py`: constant `SIZE` 1.0 → 2.0; a slow drift over the whole window must now reach twice the median daily amplitude (`thresholds.md` updated).
- S2 (`c8fb838`), pruning: the Kendall-tau condition (`STEADY` = 0.6) removed from the whole-window test and the pieces, with its computations.
- S3 (`466799f`), pruning: constant `DAYS` = 5 removed; an axis needs at least two kept days, and the step condition still requires three days for a drift.
Upgrader's verdict: changed. Validator's verdict: keep.
## For the user to decide
From the modification, "Limits":
- LENZSPITZE-89, 94, 49, 50, 59, 63, 109, 110, 111, 112, 113, 115 (Obstruction, 10-23 13:30 to 11-01 05:15, short partial occultations), and LENZSPITZE-37, 99, 107 (Visibility, partial dimming): only the `flux` of the targets shows them. The `error_value` stays under `K_MAD`, and the targets are not rejected. The tools' `data.py` reads `flux` only for recent cameras (LENZSPITZE alone in the benchmark). A flux-drop rule would therefore serve one station, and on these one-measurement labels it would earn well under 1 point of the Obstruction Total. Seeing them on other stations needs flux, or the images.
- The report says no label of the range is wrong. It removed LENZSPITZE-53 and rewrote -66 (now -119), and the labels file already reflects both.
From the modification, "For the user to decide":
- S1 sets the whole-window drift at 2 daily amplitudes. Untouched targets at 1.0 to 1.9 amplitudes are no longer flagged: 1001, 1010, 1012, 1016, 1018 of LENZSPITZE and PR16 of NORDEND, with no label on any of them. WILDSTRUBEL's PA3_2 (1.9) and PA_9 (1.6) drop out too, but PB2_2 (2.6) still covers WILDSTRUBEL-89. If the user reads a steady 1-to-2-amplitude creep over weeks as a Displacement ("keep watching it"), 1.5 would keep 1016 and the two WILDSTRUBEL PA drifts.
- LENZSPITZE-55 (LENZSPITZE, 10-28 11:00-14:05, Visibility, turbulence): the agitation is clear, but `error_value` does not rise against its calm. The detectors follow the families boundary ("the pose shaking without the error_value rising is not turbulence"), while the label calls it turbulence. Dropping the error criterion would need the user to change that boundary.
- The `d and` guard of `_pieces` is kept despite no figure change: it guards against the degenerate case of constant curves.
From the validation, "Reservations":
- NORDEND, Displacement, "found" 4/4 (100 %) → 0/4 (0 %). Before, these 4 labelled instants were "found" only because a whole-window Slow drift flagged 8549 instants (0 % correct). The labels NORDEND-276, NORDEND-309, NORDEND-94 and NORDEND-250 describe sudden jumps or camera steps, not a slow drift. They are this detector's business only by accident. Losing them is the noise of a few instants, and the reading is consistent.
## Not fixed
- Target obscured during two consecutive mist nights (10-26 → 10-27, 9 sensors, ~115 instants of LENZSPITZE-101 and 181 of -42 flagged Obstruction). Tried two fixes. Counting only rejections shared by fewer than half of the sensors gave 4 regressions (NIEDERHORN, NORDEND, Total Obstruction found and correct). `MIN_DAYS` 2 → 3 gave 3 regressions (NIEDERHORN, WILDSTRUBEL, Total found). Target obscured is worth 1085 found instants elsewhere.
- Thermal displacement bounds on LENZSPITZE: the slide fallback bridges nights over 10 days. Narrowing its merge gap to 12 h or 6 h gave regressions (LENZSPITZE found 92 → 81/76 %, WYOMING 51 → 36/33 %, Total found −3/−4 points). Detecting a wave carried by a minority of targets (8/31 here) would change the station-level rule (`SHARE`, `R2_MIN`) for every station: not attempted in a small step.
- Multi-hour Perturbation events around the visibility episodes (single-target jumps back after hours, outside the detected Visibility bounds).
- Lasting shifts of one target inside visibility episodes (4 instants) and the 8012 reference shifts (LENZSPITZE-105, 106, 108): small.
## Reading tools
"What I decided":
- `thumbnails.py`: changed. A sensor without any `x`, `y` is left out with a printed line that names it and points to `--zone`. If no sensor is left and there is no `--zone`, the tool exits with a clear message. `measurement()` also needs `y` to be filled, not only `x`. One sentence is added to the docstring. Options and outputs are unchanged.
- `quality.py`: left. Making it report `corr` jumps would duplicate `ranges.py --instants`.
- `ranges.py`: left. `--rolling` with `--instants` already covers `forgotten.py`, `scan.py` and `requal_instant.py`, except for filtering by a labels file. The pointer belongs in the guide (proposed below).
- Analyst scripts `requal_hourly.py`, `requal_thermal.py`, `drift.py`, `edges.py`, `amp.py`: left where they are. They are hard-coded to this station and range, and mostly covered by `summary.py --step 1h`, `days.py --bounds` and `ranges.py`. Adding a tool for them would be a contraption for one range.
- Nothing removed.
"What changed":
- S1, commit `9900604`, `scripts/thumbnails.py`:
- After `check("sensors", …)`, a new rule. Sensors with no measurement carrying both `x` and `y` are printed (`No x, y for … in the export: not placed (--zone X,Y,W,H looks at the scene around them).`) and dropped from the sensor list. With no sensor left and no `--zone`, the tool exits with `No sensor left to centre a thumbnail on.`
- `measurement()`: the filter goes from `m["x"] is not None` to `m["x"] is not None and m["y"] is not None`.
- Docstring: one more sentence saying such a sensor is left out and said so.
`data.py`: unchanged.
Also proposed (tools.md, "For the user to decide"): a sentence for `GUIDE.md`, "quality" section, after the `--outside` bullet: "It sees only the image metrics: jumps of `corr` with a whole flux (a far reference that shifts, the basis that changes) come from `ranges.py --rolling N --instants 2` on the same range." Not written, because `GUIDE.md` carries another session's uncommitted change.
## Scripts of the agents
From the modification:
- `sessions/LENZSPITZE_2026-10-23T2355_2026-11-01T1140_20261118T1049Z/tools/drift_days.py <detectors> <station> <from> <to> [targets]`: daily levels, amplitude, whole-window drift and pieces of the slow drift, per target and axis. Worth keeping.
- `.../tools/per_label.py <detectors> <station> <labels> <from> <to> [family]`: per label, instants found in its family and the families flagged instead. Worth keeping, as it is the per-label view the range score lacks.
- `.../tools/thermal_why.py <detectors> <station> <from> <to>`: why the thermal wave is accepted or rejected (reproducible axes, sine R²). Worth keeping.
- `.../tools/shimmer_hours.py <detectors> <station> <from> <to> <iso start> <iso end>`: per-hour heat-shimmer stats (agitated share, error ratio). Worth keeping.
- `.../tools/around.py <detectors> <station> <iso center> <minutes> <sensors>`: error_value (MAD, ratio), flux and corr of sensors around an instant. Worth keeping.
- `.../tools/jumps_in.py <detectors> <station> <from> <to> <iso start> <iso end>`: the jump episodes of `displacement` in an interval. Useful occasionally.
- `.../tools/drop_steady.py <detectors>`: the one-off edit of S2. Not worth keeping.
From the validation: none.
From the tools upgrader:
- `sessions/LENZSPITZE_2026-10-23T2355_2026-11-01T1140_20261118T1049Z/tools/blank_xy.py`: builds a test station folder from one day's export, with `x`, `y` emptied for chosen sensors and the images linked. Arguments: `<station folder> <YYYYMMDD> <SENSOR,…> <new folder>`. Run it with `python3 -I`. Worth keeping to test any tool against a sensor without a position.
## Errors
None.
- Files already modified: detectors: none; tools: `GUIDE.md` (left as it is).
- Detectors base `0adadd5bdc57725c765592b1001216b9c179126e`; `git -C detectors log --oneline 0adadd5..HEAD`:
```
466799f improve: S3
c8fb838 improve: S2
f623b79 improve: S1
```
- Tools base `7ada30a1ccb65af3a0d9a67c17e9a81451f322db`; `git -C tools log --oneline 7ada30a..HEAD`:
```
9900604 improve: S1
```