Labels for CLARIDEN, FLORIDA, JUNGFRAU (gaps 06-20.10, 26.10-01.11), LENZSPITZE, NIEDERHORN, NORDEND, SNCF01, WILDSTRUBEL. Figures and tool outputs stay out of git. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
741 B
Python
18 lines
741 B
Python
"""Par instant : capteurs rejetés (hors cibles toujours rejetées), et écart de corr des cibles acceptées.
|
|
usage: rejets.py DEBUT FIN"""
|
|
import sys, statistics as st
|
|
sys.path.insert(0, 'labeling/auto/etiqueteur/NIEDERHORN_2026-10-01/outils')
|
|
from table import charge
|
|
|
|
TOUJOURS = {'e03', 'e04', 'e05', 'e07', 'e08', 'e11', 'e12'}
|
|
debut, fin = sys.argv[1:3]
|
|
rows = charge(debut, fin)
|
|
court = lambda s: s.replace('PWD_', '').replace('_C09', '')
|
|
par_t = {}
|
|
for r in rows:
|
|
par_t.setdefault(r['t'], []).append(r)
|
|
for t in sorted(par_t):
|
|
rej = [court(r['sensor_name']) for r in par_t[t]
|
|
if r['sensor_name'] not in TOUJOURS and float(r['error_value']) > float(r['error_threshold'])]
|
|
print(t[5:16], len(rej), ' '.join(rej))
|