Files
Support-Agent/labeling/auto/etiqueteur/WILDSTRUBEL_2026-09-07/outils/valeurs.py
T
maximeandClaude Opus 5.5 35b5ed4d74 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

22 lines
839 B
Python

"""error_value (et corr_x, corr_y) de tous les capteurs à des instants donnés (quart d'heure).
Usage : python3 valeurs.py data/WILDSTRUBEL T1,T2,... (T au format 2026-09-01T11:00Z)
"""
import csv, glob, sys
d, ts = sys.argv[1], sys.argv[2].split(',')
days = {t[:10].replace('-', '') for t in ts}
for f in sorted(glob.glob(f"{d}/displacement/*_advanced_*.csv")):
if f[-12:-4] not in days:
continue
out = {}
for r in csv.DictReader(open(f)):
t = r['time_utc']
m = int(t[14:16])
k = f"{t[:10]}T{t[11:13]}:{m - m % 15:02d}Z"
if k in ts:
ev = float(r['error_value'])
mark = '*' if ev > float(r['error_threshold']) else ' '
out.setdefault(k, []).append(f"{r['sensor_name']}={ev:.2f}{mark}")
for k in sorted(out):
print(k, ' '.join(out[k]))