Files
aimsight-labeling/auto/revue-croisee/2026-11-04/finition/wildstrubel/outils/rigide_resume.py
T
maximeandClaude Opus 5.5 14ad6ea3f9 Auto labels reviewed per station and cross-reviewed; all labeling knowledge in labeling/ (D-130)
- 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>
2026-11-05 08:21:57 +01:00

18 lines
1.2 KiB
Python

"""Relit fig/rigide_<jour>.txt (écrits par rigide_jours.py) : extrêmes de ty, tx, rot_deg, echelle du mouvement
d'ensemble des cibles, sans les pas où une cible s'écarte de plus de 1 px du bloc (cib_max > 1 : passages,
voitures garées). Usage : rigide_resume.py"""
import glob
W = 'labeling/auto/revue-croisee/2026-11-04/finition/wildstrubel'
for f in sorted(glob.glob(f'{W}/fig/rigide_*.txt')):
l = open(f).read().split("Mouvement d'ensemble ajusté")[1].splitlines()
tete = [x for x in l if x.startswith('instant')][0].split()
rows = [x.split() for x in l if x[:4] == '2026' and len(x.split()) == len(tete)]
rows = [r for r in rows if float(r[tete.index('cib_max')]) <= 1]
out = []
for c in ('ty', 'tx', 'rot_deg', 'echelle'):
i = tete.index(c)
lo = min(rows, key=lambda r: float(r[i])); hi = max(rows, key=lambda r: float(r[i]))
out.append(f'{c} {float(lo[i]):+.3g} ({lo[0][11:16]}) à {float(hi[i]):+.4g} ({hi[0][11:16]})')
cm = sorted(float(r[tete.index('cib_med')]) for r in rows)
print(f[-14:-4], ' | '.join(out), f'| cib_med médiane {cm[len(cm)//2]:.3f}, 90e {cm[int(.9*len(cm))]:.3f} px ({len(rows)} pas)')