Etiqueteur: October labels for 8 stations; its folder moves to labeling/auto/etiqueteur/, analyses and scripts versioned (D-126)
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>
This commit is contained in:
1 parent
2bba388290
commit
6fbd7510b7
112 files changed
+8951
-6
No files matched your search
@@ -0,0 +1,13 @@
|
||||
"""Metriques systeme de SNCF01 par heure : BusVoltage, BusCurrent, Power (une ligne par heure)."""
|
||||
import csv, glob, sys
|
||||
from collections import defaultdict
|
||||
|
||||
d = defaultdict(dict)
|
||||
for m in ("BusVoltage", "BusCurrent", "Power"):
|
||||
for f in glob.glob(f"data/SNCF01/metrics/SNCF01_{m}_*.csv"):
|
||||
for r in csv.DictReader(open(f)):
|
||||
d[r["time_utc"][:16]][m] = r["metric"]
|
||||
deb, fin = sys.argv[1], sys.argv[2]
|
||||
for t in sorted(d):
|
||||
if deb <= t <= fin:
|
||||
print(t, *(d[t].get(m, "") for m in ("BusVoltage", "BusCurrent", "Power")))
|
||||
Reference in new issue
Block a user