sessions of 2026-11-18 (the optimization campaign; three runs without summary, interrupted and rerun)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-18 17:47:59 +01:00
1 parent 8a81c53cd9
commit 0cfbd1b7bc
363 files changed
+30822

No files matched your search

@@ -0,0 +1,45 @@
# Modification
**Verdict**: changed
**Changed**: scripts/inventory.py
**data.py**: unchanged
## What the analyst used
`inventory.py` for the missing steps and image gaps, `metrics.py --names BusVoltage,BatteryPercent(,BatteryState) --metrics-only`, `days.py` for night levels, `ranges.py --k 5 --outside` with the mm columns. It also wrote its own `scripts/r3_rates.py`, which counts each reference's rejected measurements per day, split into daytime and night hours. It needed that split to show that a reference is "rejected every day, almost never at night" (Target issue). `inventory.py` already gave the rejection runs (one line of more than 40 runs per reference over a month) and the share rejected per UTC day. Neither one says at which hours of the day a sensor is rejected without reading every run. `analysis.md` has no "Documentation" or "Difficulties" section. `write_labels.py` only served this range.
## Diagnosis
- To find a sensor rejected at the same hours every day (GUIDE method step 1: "its share of rejected measurements and its hours"), the analyst had to read every dated run or write a script. `inventory.py`'s window section has no summary of rejections by hour of the day.
## What I decided
- `inventory.py`: changed (S1). A line per rejected sensor gives the rejected/measurements count per UTC hour of the day, all days together. This replaces the day/night split of `r3_rates.py`, and it fixes no daytime hours (those would depend on the station and the season). The per-day line next to it already gives the "every day" part.
- `scripts/r3_rates.py` (analyst): not added as a tool. The station path is hard-coded and so are the 05–16 UTC hours. The new inventory line covers what it showed.
- `scripts/write_labels.py` (analyst): left, it is specific to this range.
- Nothing removed.
## What changed
- S1, commit `fc30569` in the tools repository, `scripts/inventory.py`, function `window`. After each rejected sensor's `per day` line, a new line `<sensor> per UTC hour of the day, all days together (HH:rejected/measurements): 00:r/n …`, for the hours that have a measurement. The section title and the module docstring now mention it. The existing lines are unchanged.
## Why
A reference or target that is rejected at the same hours every day is a moment of its own. Until now only the long list of runs showed its hours. The per-hour counts show the daily pattern in one line, and the analyst still judges what it means.
## Checks
- `python3 tools/scripts/inventory.py data/WILDSTRUBEL --start 2026-09-07T00:00Z --end 2026-11-01T00:00Z` returns 0 (`work/tools/inventory.txt`). For R3 it gives `00:0/48 … 04:27/42 05:53/60 06:66/77 07:79/80 … 12:83/83 13:74/79 14:44/77 15:17/74 16:1/61 … 23:0/44`, in line with the analyst's script (rejected by day, almost never at night). There are 9 such lines in all, one per sensor that has a rejection. No PNG (text tool).
- `python3 tools/scripts/quality.py --self-test`: ok.
- Report commands rerun: 2 (`inventory.py` over the whole period and over 01/10–01/11, `work/inventory-whole.txt`, `work/inventory-oct.txt`; the report gives no exact inventory command), no failure.
## For the user to decide
- `GUIDE.md` was already modified and I was told not to commit it, so the new line is not in the guide. Sentence I propose for the inventory section, after "by sensor, the rejected measurements, dated (…)": "then the share rejected per UTC day and the rejected/measurements per UTC hour of the day, all days together (a sensor rejected at the same hours every day)". The guide also does not yet mention the existing per-day line.
## Not fixed
none
## Limits
none
## Tools
none (I edited the file with an inline Python replacement and wrote no reading script).
## Difficulties
- `tools/CLAUDE.md` asks that a new output enter `GUIDE.md` in the same change, but the request forbids committing `GUIDE.md`, which another change had already modified. The output describes itself (section title, docstring), and the guide sentence is proposed above.
- The analysis has no "Documentation" or "Difficulties" section, so I worked out what was missing from the analyst's own script.
- I made the edit of `inventory.py` with an inline Python heredoc rather than a script in `tools/`. It reads no evidence, so no tool is kept.