- 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>
21 lines
1.1 KiB
Python
21 lines
1.1 KiB
Python
"""Résume les sorties de rigide.py (ensemble.py --rigide, une par étiquette) : pour chaque étiquette, les capteurs dont le
|
|
résidu au mouvement d'ensemble des cibles (dx ou dy, min ou max) dépasse SEUIL px, rangés du plus fort au plus faible.
|
|
Usage, depuis la racine : python3 <ce fichier> [SEUIL] (défaut 0.04)"""
|
|
import glob, os, re, sys
|
|
ICI = os.path.dirname(os.path.abspath(__file__))
|
|
seuil = float(sys.argv[1]) if len(sys.argv) > 1 else 0.04
|
|
rx = re.compile(r"^(\S+)\s+(\(réf\.\))?\s*(dx|dy) min (\S+) à \S+?T(\d\d:\d\d)Z, max (\S+) à \S+?T(\d\d:\d\d)Z")
|
|
for f in sorted(glob.glob(os.path.join(ICI, "..", "rigide", "*.txt")), key=lambda p: int(os.path.basename(p)[:-4])):
|
|
out = []
|
|
for l in open(f):
|
|
m = rx.match(l)
|
|
if not m:
|
|
continue
|
|
s, ref, ax, mn, tmn, mx, tmx = m.groups()
|
|
mn, mx = float(mn), float(mx)
|
|
v, t = (mn, tmn) if abs(mn) >= abs(mx) else (mx, tmx)
|
|
if abs(v) >= seuil:
|
|
out.append((abs(v), f"{s}{'(réf)' if ref else ''}.{ax} {v:+.3f}@{t}"))
|
|
out.sort(reverse=True)
|
|
print(f"#{os.path.basename(f)[:-4]} : " + ("; ".join(x[1] for x in out) or "aucun"))
|