wf-improve generic: the caller gives the range, labels, reference truth, families, context and output folder
Skill and agents no longer name Diagnostic-app paths (analyses, labeling/auto, demande.json, summary location, git rules of the working repository). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cff2b0ad1e
commit
0de006bcb2
12 files changed
+110
-113
No files matched your search
@@ -1,15 +1,15 @@
|
||||
"""From the detectors' episodes to events, one per family.
|
||||
|
||||
One detector per label family (labeling/familles.md): visibility.py, obstruction.py, target_issue.py,
|
||||
One detector per label family (the families document): visibility.py, obstruction.py, target_issue.py,
|
||||
thermal_displacement.py, no_data.py, displacement.py. The category of an event is its family, the kind field of its
|
||||
episodes; their label gives the variety (Poor visibility, Heat shimmer, Brief obstruction, Slow drift…). Rules:
|
||||
- a jump back to normal (JUMP_BACK) that overlaps an episode of HOSTS (loss of visibility, something passing, heat
|
||||
shimmer, and last the thermal effect, if it touches several targets) is absorbed into it: it takes its cause and
|
||||
family; otherwise it stays Displacement, cause not established, to be checked on the images (familles.md, "A jump then
|
||||
family; otherwise it stays Displacement, cause not established, to be checked on the images (the families document, "A jump then
|
||||
the return"); a Brief obstruction (one instant) only absorbs the jumps starting at its instant, not those of several
|
||||
days it crosses (wf-improve session Displacement, mod. 1, S5);
|
||||
- a slow drift or a jump back whose targets are all in an overlapping Target issue episode is absorbed into it (the
|
||||
curve of a problem target is to be ignored, familles.md);
|
||||
curve of a problem target is to be ignored, the families document);
|
||||
- a shift that lasts, or too recent to know (SHIFTS), is never absorbed;
|
||||
- heat shimmer overlapping a shift of several targets is not kept: a real movement also shakes the curves; the shift of
|
||||
a single target does not remove the heat shimmer of the whole scene, and heat shimmer only absorbs the jumps back
|
||||
@@ -21,7 +21,7 @@ episodes; their label gives the variety (Poor visibility, Heat shimmer, Brief ob
|
||||
bounds (wf-improve session Target issue, mod. 1, S3); a Brief obstruction only absorbs the jumps back within MERGE after
|
||||
its instant (S3: not the 30 h jump of another target).
|
||||
Each event gets its sentence, in English (the site): what happened and what to do about it, as the "For the client"
|
||||
column of familles.md says; the cause is only given if the variety establishes it, otherwise the images show it.
|
||||
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)
|
||||
... <folder> [--from YYYY-MM-DD] [--to YYYY-MM-DD] [--chunk 3] [--history N] (batch run: each chunk of N days
|
||||
@@ -50,7 +50,7 @@ def _context(folder, key):
|
||||
return CONTEXT[key](folder)
|
||||
|
||||
|
||||
# The families of labeling/familles.md, in the order of the timeline rows; ignore: greyed zone (None: as its episodes
|
||||
# The families of the families document, 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,4 +1,4 @@
|
||||
"""Detector of the Displacement family (labeling/familles.md): sudden jumps of corr_x / corr_y (px) of each target, at
|
||||
"""Detector of the Displacement family (the families document): sudden jumps of corr_x / corr_y (px) of each target, at
|
||||
the native cadence of the "advanced" export, and slow drift (end of file). A flipping target ("Target flipping")
|
||||
belongs to the Target issue family: episodes() returns it, detect() leaves it to target_issue.py.
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
"""Detector of the No data family (labeling/familles.md): moments without a measurement (the cadence of the "advanced"
|
||||
"""Detector of the No data family (the families document): moments without a measurement (the cadence of the "advanced"
|
||||
export is broken).
|
||||
|
||||
Cadence: median gap between two measurement instants, all sensors together. A hole: more than MISSING missing steps
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
"""Detector of the Obstruction family (labeling/familles.md): an object hides one or a few targets, for an instant or
|
||||
"""Detector of the Obstruction family (the families document): an object hides one or a few targets, for an instant or
|
||||
for long. It reuses two computations shared with other families:
|
||||
- the error_value of visibility.py: Brief obstruction (something passing, one instant) and Target obscured (a target
|
||||
rejected again and again while the others stay seen, or a nuisance that only touches a few targets, no reference);
|
||||
- the day-by-day rejections of target_issue.py: a target rejected for less than a week, Target obscured.
|
||||
A sensor already in an overlapping Target issue episode (Degraded target, Target stuck) is not returned as Obstruction:
|
||||
its curve is already to be ignored, the family is Target issue (boundary "Target issue or an episode of another family"
|
||||
of labeling/familles.md; wf-improve session Obstruction, mod. 1: S1, problem targets of FLORIDA, NORDEND, SNCF01,
|
||||
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)
|
||||
"""
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Detector of the Target issue family (labeling/familles.md): a persistently problematic target: rejected most of the
|
||||
"""Detector of the Target issue family (the families document): a persistently problematic target: rejected most of the
|
||||
time, day after day, while the others are seen (degraded target), stuck (end of file), or flipping (the jumps of
|
||||
displacement.py, "Target flipping"). A target rejected for less than a week is hidden at times (point 4): episodes()
|
||||
returns it with the Obstruction family, which detect() leaves to obstruction.py.
|
||||
@@ -14,7 +14,7 @@ Method:
|
||||
measurement every 4 h; REFCOLH22, rejected all the time since it was lost, was not seen.
|
||||
3. Episode: at least MIN_DAYS degraded days in a row (a day that does not count does not break the run), from the first
|
||||
rejected measurement of these days to the last; ignore = True: the target's curve is not reliable.
|
||||
4. Hindered all the time or at times (boundary "Target issue or Obstruction" of labeling/familles.md; wf-improve
|
||||
4. Hindered all the time or at times (boundary "Target issue or Obstruction" of the families document; wf-improve
|
||||
NEBRASKA, batch 01): a run of at least WEEK days is a problem target, "Degraded target"; shorter, a target hidden at
|
||||
times, "Target obscured" (Obstruction family), one episode per run of rejected measurements (the hours when it is
|
||||
seen are not part of it). BREITHORN: vehicles parked in front of COLI24 and POUI22, 2 to 5 days; NEBRASKA and
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Detector of the Thermal displacement family (labeling/familles.md): the daily wave of the corrected displacements
|
||||
"""Detector of the Thermal displacement family (the families document): the daily wave of the corrected displacements
|
||||
(expansion by day, contraction in the evening).
|
||||
|
||||
Method, per target (global references excluded) and per axis (corr_x, corr_y):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Detector of the Visibility family (labeling/familles.md): the camera sees less well, the image is faint or blurred
|
||||
"""Detector of the Visibility family (the families document): the camera sees less well, the image is faint or blurred
|
||||
(error_value), or it trembles (heat shimmer, end of file). The same error_value computation also finds objects in front
|
||||
of a few targets (Brief obstruction, Target obscured): episodes() returns them with the Obstruction family, which
|
||||
detect() leaves to obstruction.py.
|
||||
@@ -32,7 +32,7 @@ Method:
|
||||
rejected (> error_threshold), and no episode without a rejected target. On a road in full sun, the daytime
|
||||
error_value (×1.5 to ×3, heat shimmer) made reduced visibility last for hours without any rejection; references do
|
||||
not count: R3 is above its threshold almost all day.
|
||||
7. Poor visibility or object (boundary "Visibility or Obstruction" of labeling/familles.md; BREITHORN, batch 01): a
|
||||
7. Poor visibility or object (boundary "Visibility or Obstruction" of the families document; BREITHORN, batch 01): a
|
||||
nuisance touching at most FEW targets, and no reference, is not diffuse: it is an object in front of them (a parked
|
||||
vehicle), a "Target obscured" episode of its whole duration, without a level.
|
||||
8. Diffuse nuisance, with or without rejections (wf-improve session Visibility, mod. 1, S2): at each instant, the median,
|
||||
|
||||
Reference in new issue
Block a user