auto: the long labels requalified as analyses like the others, <STATION>_<start>_<end>/ with request.json (ex long-labels/<STATION>/); their labels carry the analysis; work/ out of git

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-18 07:16:59 +01:00
1 parent ddb17c2189
commit 764af7d8ec
132 files changed
+125 -9256

No files matched your search

@@ -0,0 +1,9 @@
# Requalification of the long labels: WILDSTRUBEL
- **WILDSTRUBEL-46** (Target issue, reference R3, 07/09 00:00 → 01/10 00:00): **kept** as is. R3 is rejected at 445 of 1088 measurements (41 %), almost all by day: 05–16 UTC, 42–43/44 on 07–09/09, 32–37/44 on 22–29/09 (23/29 on the restart day 22/09, 25/42 on 30/09: "a little less often in the last days of September" holds); at night 0–5 per night. Every measured day of the range, its own rejections (the other references over the same range: PA_8 121, R2 67, R1 31, PB3_2 16, PA1_2 15). A reference rejected every day under the ordinary daylight regime is a Target issue even without effect on the targets (`families.md`, "Target issue or episode of another family"; catalogue: "A target rejected every night or every day").
- **WILDSTRUBEL-69** (No data, 09/09 21:45 → 22/09 08:45): **kept** as is. No measurement of any sensor between these two instants (1195 missing steps; last measurement 09/09 21:45, first 22/09 08:45); no image (09/09 21:45 → 22/09 08:39) and no metric (09/09 22:00 → 22/09 07:00). Battery 9 % and BusVoltage 11.5 V at 09/09 21:00 (other nights 12.9–13.0 V at 25–60 %), then 100 % and 14.3 V at 22/09 08:00: the energy signature stated holds.
- **WILDSTRUBEL-70** (Displacement, 09/09 21:45 → 22/09 09:00): **kept** as is. `ranges.py --k 5 --min-measurements 6 --outside 2026-09-09T21:45Z/2026-10-01T00:00Z` (level and noise of the days before the outage, 01–09/09): from the first measurement after the outage, PB1_2 corr_y −11.3 noises (−0.19 px, about −1.1 mm) for 170 measurements, 22/09 09:00 → 24/09 04:45; PB_5 corr_x −6 to −7 noises (about −1.0 mm) 22/09 09:00 → 24/09; PB2_2 corr_y −7.9 noises (about −0.8 mm). Night levels (`days.py`), night 09/09 → night 22/09: PB1_2 corr_y −13.9 noises (−1.3 mm), PB2_2 corr_y −6.4 (−0.6 mm), PB_5 corr_x −5.0 (−0.7 mm); PA_9 corr_y +2.7, PA2_2, PA3_2, PB4 corr_x −1.6 to −2.3 noises (under the threshold on their own, named in the text as smaller steps, not wrong). At least one target beyond 5 noises: the step holds; its bounds follow the rule of a jump hidden in an outage.
- **WILDSTRUBEL-130** (Target issue, reference R3, 01/10 00:00 → 01/11 00:00): **kept** as is. 325 of 432 measurements rejected (75 %): by day 29–40 of 31–43 per day from 01 to 09/10 (31/31 on 07/10, 29/31 on 09/10), the only daytime measurement of 15/10 rejected; at night 0–2 per night (1 of 38 on 01/10). The other references over the range: PA1_2 90, PA_8 86, R2 40, R1 25, PB3_2 13. Its own rejections every measured day: Target issue kept. No measurement after 15/10 08:00 except one on 31/10 20:15 (night, accepted), as the text says.
- **WILDSTRUBEL-199** (No data, 15/10 08:00 → 31/10 20:15): **corrected** (description), review removed. Bounds hold: last measurement 15/10 08:00, next 31/10 20:15, no measurement in between. Metrics: two isolated hours on 25/10 (01:00, 03:00), then back on 30/10 18:00; BatteryPercent 78 % at 30/10 18:00, 80–84 % all night, 94 % at 31/10 05:00, 100 % from 31/10 06:00 to 15:00 (BusVoltage 13.1–13.2 V then 14.0–14.2 V). Correction applied (found by the period analyst): "the battery full" at the 30/10 return becomes "well charged but not full; full only on 31/10 in the morning"; images on 31/10 04:00–13:00 hourly, first displacement measurement 31/10 20:15 ("until that evening" added).
Sources read: `tools/GUIDE.md`, `tools/DATA.md`, `labeling/families.md`, `labeling/labeling-rules.md`, `labeling/reading-rules.md`, `labeling/stations.md`, `work/existing.jsonl`, the outputs of the NORDEND long labels (format). Commands: `scripts/r3_rates.py` (rejections per reference and per day/night, through `tools/scripts/data.py`), `inventory.py` (missing steps, image gaps), `metrics.py --names BusVoltage,BatteryPercent(,BatteryState) --metrics-only` on 08–23/09 and 24/10–01/11, `days.py` night levels 05–26/09 (`work/days_70.txt`), `ranges.py --k 5 --outside` 01–25/09 with the mm columns (`work/ranges_70.txt`). Labels written by `scripts/write_labels.py`; `validate.py`: 0 errors, 0 overlaps.
@@ -0,0 +1,5 @@
{"start": "2026-09-07T00:00Z", "end": "2026-10-01T00:00Z", "family": "Target issue", "description": "The reference R3 is rejected on every measured day of the batch (from 07 to 09/09, then from 22 to 30/09), from sunrise until mid-afternoon, and almost never at night: by day, its error_value stays above its threshold at almost every measurement, a little less often in the last days of September; at night, it is well below. On its daytime thumbnail (30/09 at 10:00), its spot cannot be seen, while those of R1 and R2 can; at night, under the infrared, it is sharp, smaller than theirs (03/09 at 02:00 thumbnail). It is rejected as much before as after the outage from 09/09 to 22/09, when the other reflectors are better seen: it is the target, not the daytime sun. The compensation therefore runs every day on five references, and on three or fewer as soon as two others are lost (PA_8 poorly seen before the outage, passages in front of R1 and R2, sunrise, separate labels); its entries and exits do not make the targets jump. Cause not established: a reflector too weak for daytime (small, dirty or poorly oriented). Ignore the curve of R3 by day; act on the target (clean it, reorient it or replace it) to give a sixth reference back to the daytime compensation.", "review": "2026-11-17"}
{"start": "2026-09-09T21:45Z", "end": "2026-09-22T08:45Z", "family": "No data", "description": "No measurement for any sensor for nearly two weeks; the metrics and the images stop with the measurements. Just before, the battery empties and the voltage falls well below its level of the other nights (metrics): the station shuts down for lack of energy. It restarts on 22/09 in the morning, the battery full and a voltage much higher than usual, as on an external power supply; on return, the tilt of the camera is no longer at the same night level as before the outage. The curves are missing: the station ran out of energy, to be checked (battery, panel, possible intervention).", "review": "2026-11-17"}
{"start": "2026-09-09T21:45Z", "end": "2026-09-22T09:00Z", "family": "Displacement", "description": "During the outage from 09/09 to 22/09, the corrected curves change level and do not resume the one from before: corr_y of PB1_2 markedly lower, corr_y of PB2_2 lower, corr_x of PB_5, PA2_2, PA3_2 and PB4 lower, corr_y of PA_9 higher, from the first measurement. The jump is hidden in the outage; the step lasts until the end of the batch, except for PB_5, back near its level from before on 30/09 (labelled separately), and PB1_2 keeps going down from 25 to 29/09 (labelled separately). The camera is no longer at the same night level (tilt and rotation shifted). Relative to the overall movement of the targets, the raw position of PB1_2 has shifted alone, and the references PA_8 and PA1_2 a little relative to each other, which changes the basis of the other targets. After the restart, the reflectors are seen better, by day and by night, and the error_value of all sensors is lower; the housing temperature has the same cycle before and after. Cause not established: an intervention on the station during the outage (adjustment, cleaning), or, for PB1_2, a movement of the kerb. For the targets that follow the basis, this is not a movement of the structure: do not compare the levels from before and after the outage, to be checked with the operator; for PB1_2, a movement is not excluded: look at the target, keep watching.", "review": "2026-11-17"}
{"start": "2026-10-01T00:00Z", "end": "2026-11-01T00:00Z", "family": "Target issue", "description": "The reference R3 is rejected every measured day, from the first measurement of the morning (04:30 to 05:45) until 13:30-16:30, and almost never at night: most of the measurements from 05:00 to 15:00, often all of them, from 01/10 to 09/10, and at the only daytime measurement of 15/10 (08:00); almost none at night. Its median error_value is markedly above the threshold by day, and a little below it at night. It is as much so on the days when the housing heats up least (on 08/10, almost all its daytime measurements): it is not the daytime sun, it is the target. On its daytime thumbnails, its spot cannot be seen (30/09 at 10:00), while those of R1 and R2 can. The compensation therefore runs every day on five references, and on three or fewer when two others are lost (passages, PA_8 and PA1_2 poorly seen in the sun, separate labels); its entries and exits do not make the targets jump (median jump of the corr no more than a little above the noise, like the other steps of the day, apart from the moments already labelled). No daytime measurement after 15/10: no return seen, until the end of the batch. Cause not established: a reflector too weak for daytime (small, dirty or poorly oriented). Ignore the curve of R3 by day; act on the target (clean it, reorient it or replace it).", "review": "2026-11-17"}
{"start": "2026-10-15T08:00Z", "end": "2026-10-31T20:15Z", "family": "No data", "description": "No measurement for any sensor for more than two weeks; the metrics and the images are also missing almost all that time (two isolated values on 25/10), and come back only on 30/10 in the evening, the battery well charged but not full; it is full only on 31/10 in the morning, with daytime images on 31/10, still without a displacement measurement until that evening. Cause not established (station stopped). The curves are missing: to be checked with the operator."}
@@ -0,0 +1,7 @@
# WILDSTRUBEL long labels: requalification
5 labels: 4 kept, 1 corrected, 0 removed.
- **WILDSTRUBEL-199** (No data, 15/10 → 31/10) corrected: the station comes back on 30/10 in the evening with the battery at about 80 %, not full; it reaches 100 % only on 31/10 in the morning. Bounds unchanged (no measurement at all in between).
Kept: WILDSTRUBEL-46 and -130 (reference R3 rejected by day every measured day: 41 % then 75 % of its measurements, almost none at night); -69 (no measurement at all, battery empty before the gap); -70 (step hidden in the September outage: PB1_2 vertical about −1.1 to −1.3 mm, up to 14 noises; PB_5 horizontal about −0.7 to −1.0 mm, PB2_2 vertical about −0.6 to −0.8 mm, 5 to 8 noises).
@@ -0,0 +1,6 @@
{
"station": "WILDSTRUBEL",
"start": "2026-09-07T00:00Z",
"end": "2026-11-01T00:00Z",
"hints": "Requalify the long labels of the station (work/existing.jsonl: those that no period analysis owns) under the new rules: keep, correct, remove."
}
@@ -0,0 +1,20 @@
"""Per-day rejection rate of R3 (and the other references), by day (05-16 UTC) and by night, over a window."""
import sys, collections
sys.path.insert(0, "tools/scripts")
import data
D = data.load("data/WILDSTRUBEL")
start, end = data.parse_time(sys.argv[1]), data.parse_time(sys.argv[2])
refs = [s for s, ms in D.items() if data.is_reference(ms)]
print("references:", refs)
for s in refs:
tot = collections.Counter(); rej = collections.Counter()
T = [0, 0]
for m in D[s]:
if not (start <= m["t"] < end): continue
day = m["t"].strftime("%m-%d"); dn = "D" if 5 <= m["t"].hour < 16 else "N"
tot[day, dn] += 1; T[0] += 1
if data.rejected(m): rej[day, dn] += 1; T[1] += 1
print(f"{s}: {T[1]}/{T[0]} rejected")
if s == "R3" or "-v" in sys.argv:
for day in sorted({d for d, _ in tot}):
print(" ", day, " ".join(f"{dn} {rej[day,dn]}/{tot[day,dn]}" for dn in "DN" if tot[day, dn]))
@@ -0,0 +1,17 @@
"""Write labels.jsonl: input labels kept as is, except WILDSTRUBEL-199 corrected (battery not full at the 30/10 return)."""
import json
D = "labeling/auto/analyses/long-labels/WILDSTRUBEL/"
out = []
for line in open(D + "input.jsonl"):
l = json.loads(line)
if l["id"] == "WILDSTRUBEL-199":
old = "come back only on 30/10 in the evening, the battery full, with daytime images on 31/10, still without a displacement measurement."
new = ("come back only on 30/10 in the evening, the battery well charged but not full; it is full only on 31/10 in the morning, "
"with daytime images on 31/10, still without a displacement measurement until that evening.")
assert old in l["description"]
l["description"] = l["description"].replace(old, new)
l.pop("review", None)
out.append(l)
with open(D + "labels.jsonl", "w") as f:
for l in out:
f.write(json.dumps(l, ensure_ascii=False) + "\n")