Review fixes; README and CLAUDE.md finalised

- cancel reverts only the run's commits (base..HEAD), never the caller's edits
- validator diffs base..HEAD, not the working tree
- fix commits carry their Co-Authored-By line; no redundant end benchmark
- score.py: clear error on a missing labels file; docstring says end is not passed
- usage lines; README and CLAUDE.md for the generic workflow

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-13 12:45:14 +01:00
1 parent 0de006bcb2
commit 388619685a
10 files changed
+63 -30

No files matched your search

+2 -2
View File
@@ -23,7 +23,7 @@ episodes; their label gives the variety (Poor visibility, Heat shimmer, Brief ob
Each event gets its sentence, in English (the site): what happened and what to do about it, as the "For the client"
column of the families document says; the cause is only given if the variety establishes it, otherwise the images show it.
No detect function: the loader does not take this file for a detector.
Usage: python3 detectors/scripts/categories.py <station folder> (one line per event: family, variety, sensors)
Usage: python3 scripts/categories.py <station folder> (one line per event: family, variety, sensors)
... <folder> [--from YYYY-MM-DD] [--to YYYY-MM-DD] [--chunk 3] [--history N] (batch run: each chunk of N days
classified alone, with the days of history before it if they exist; only the events touching the chunk are
shown; "nothing" for a quiet chunk)
@@ -50,7 +50,7 @@ def _context(folder, key):
return CONTEXT[key](folder)
# The families of the families document, in the order of the timeline rows; ignore: greyed zone (None: as its episodes
# The families, in the order of the timeline rows; ignore: greyed zone (None: as its episodes
# say: a total loss of visibility, strong heat shimmer); process: Images button, nothing, or Images and a link to
# Diagnosis.
CATEGORIES = {
+1 -1
View File
@@ -7,7 +7,7 @@ End of the window read (end, when the caller gives it: the chunked run of catego
measurement and end, the episode running up to end (CLARIDEN, batch 01: 44 h without a measurement up to the end of
the batch, not reported). No measurement in the export does not mean the station stopped: the text only says that the
export has nothing.
Usage: python3 detectors/no_data.py <station folder> (prints the episodes)
Usage: python3 scripts/no_data.py <station folder> (prints the episodes)
"""
import os
import statistics
+1 -1
View File
@@ -7,7 +7,7 @@ A sensor already in an overlapping Target issue episode (Degraded target, Target
its curve is already to be ignored, the family is Target issue (boundary "Target issue or an episode of another family"
of the families document; wf-improve session Obstruction, mod. 1: S1, problem targets of FLORIDA, NORDEND, SNCF01,
NIEDERHORN, JUNGFRAU, CLARIDEN cut into Target obscured; S3, their isolated rejections as Brief obstruction).
Usage: python3 detectors/obstruction.py <station folder> (prints the episodes)
Usage: python3 scripts/obstruction.py <station folder> (prints the episodes)
"""
import os
import sys
+1 -1
View File
@@ -34,7 +34,7 @@ Stuck target (E-011, FLORIDA: a target defined on the prism of a reference): per
corr_y (median of the gaps from one measurement to the next) under STUCK times the median noise of the other targets, on
both axes; one day is enough (a day without noise does not happen by accident); label "Target stuck". On E-011: C2 at
7e-5 px and C3 at 2e-4 against 0.013 for the others.
Usage: python3 detectors/target_issue.py <station folder> (prints the episodes)
Usage: python3 scripts/target_issue.py <station folder> (prints the episodes)
"""
import os
import statistics