- Every station's auto labels reviewed by an analyst (/review-auto-labels), then a cross-review per family across all stations (new skill /cross-review-labels), a finishing pass, and descriptions rewritten in words (no numeric values). - The three never-labeled ranges (WILDSTRUBEL 07/09-01/10, NORDEND 16/08-01/10) labeled and reviewed: 991 auto labels on 11 stations, labeling/controle.py at 0 errors. - Labeling knowledge gathered in labeling/: regles-d-etiquetage.md (new), familles.md (settled boundaries), connaissances/ (notes moved from docs/, links updated), the label map rebuilt from reviewed labels, events and cases; events tied to their stations (PS_DES_COUDRES is JUNGFRAU). The labeler and reviewers read only labeling/. - labels-map reads auto labels and events; decision D-130; living plan points 73-75. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1.8 KiB
Python
46 lines
1.8 KiB
Python
"""Dans chaque journée de turbulence (Visibility de jour, « turbulence » dans la description), les rejets d'une
|
|
mesure : un capteur rejeté (error_value > seuil) à une mesure, ni à la précédente ni à la suivante ; R3 est
|
|
écartée (rejetée presque toute la journée). Par instant : les capteurs rejetés seuls, les références écartées
|
|
par la compensation (inlier 0), et les étiquettes autres que la journée qui couvrent l'instant (bornes exclues).
|
|
Usage : rejets_jours.py"""
|
|
import sys
|
|
from datetime import datetime
|
|
sys.path.insert(0, sys.path[0])
|
|
from donnees import mesures, etiquettes
|
|
|
|
M = mesures()
|
|
E = etiquettes()
|
|
temps = sorted({t for t, _ in M})
|
|
caps = sorted({c for _, c in M})
|
|
|
|
|
|
def rej(t, c):
|
|
r = M.get((t, c))
|
|
return r is not None and float(r['error_value']) > float(r['error_threshold'])
|
|
|
|
|
|
def hors(t, c):
|
|
r = M.get((t, c))
|
|
return r is not None and r['inlier'] not in ('', '1.0', '1')
|
|
|
|
|
|
def dt(s):
|
|
return datetime.fromisoformat(s[:16])
|
|
|
|
|
|
for eid, e in E:
|
|
if e['categorie'] != 'Visibility' or 'turbulence' not in e['description']:
|
|
continue
|
|
a, b = dt(e['debut']), dt(e['fin'])
|
|
ts = [t for t in temps if a <= t <= b]
|
|
print(f'\n=== {eid} {a:%d/%m %H:%M} -> {b:%H:%M}')
|
|
for k, t in enumerate(ts):
|
|
av = temps[temps.index(t) - 1]; ap = temps[temps.index(t) + 1] if temps.index(t) + 1 < len(temps) else None
|
|
seuls = [c for c in caps if c != 'R3' and rej(t, c) and not rej(av, c) and not (ap and rej(ap, c))]
|
|
if not seuls:
|
|
continue
|
|
autres = [i for i, x in E if i != eid and dt(x['debut']) < t < dt(x['fin'])]
|
|
tous = [c for c in caps if rej(t, c)]
|
|
ecart = [c for c in caps if hors(t, c)]
|
|
print(f' {t:%H:%M} seuls : {",".join(seuls):28} | rejetés : {",".join(tous):40} | écartées : {",".join(ecart):20} | {" ".join(autres) or "-"}')
|