- 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>
19 lines
840 B
Python
19 lines
840 B
Python
"""Par jour : part des mesures rejetées de capteurs donnés, sur une tranche d'heures UTC.
|
|
Dit si une cible est perdue chaque jour, quel que soit le temps (Target issue), ou certains jours seulement (Visibility).
|
|
|
|
Usage (depuis la racine) : python3 rejets.py STATION DEBUT FIN H1-H2 CAPTEUR [CAPTEUR ...]
|
|
"""
|
|
import sys
|
|
sys.path.insert(0, "agent-tools")
|
|
import donnees as d
|
|
|
|
nom, t1, t2 = sys.argv[1], d.instant(sys.argv[2]), d.instant(sys.argv[3])
|
|
a, b = map(int, sys.argv[4].split("-"))
|
|
par = d.charger(f"data/{nom}")
|
|
for s in sys.argv[5:]:
|
|
jours = {}
|
|
for m in d.filtrer(par[s], t1, t2):
|
|
if a <= m["t"].hour < b:
|
|
jours.setdefault(m["t"].date(), []).append(d.rejetee(m))
|
|
print(s, f"{a:02d}-{b:02d} UTC :", " ".join(f"{j.day:02d}.{j.month:02d}:{100 * sum(v) // len(v)}%" for j, v in sorted(jours.items())))
|