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:
maximeandClaude Opus 5.5 committed 2026-11-03 16:33:41 +01:00
1 parent 2bba388290
commit 6fbd7510b7
112 files changed
+8951 -6

No files matched your search

@@ -0,0 +1,19 @@
"""Table horaire de quelques métriques de WILDSTRUBEL sur le lot (une ligne par heure)."""
import csv, glob, sys
from collections import defaultdict
D = "data/WILDSTRUBEL/metrics"
NOMS = sys.argv[1].split(",") if len(sys.argv) > 1 else [
"BatteryPercent", "BatteryState", "BusVoltage", "BusCurrent", "Power",
"sensor_thermal_deg_c", "sensor_CPU_deg_c", "last_sync", "link"]
debut, fin = (sys.argv[2], sys.argv[3]) if len(sys.argv) > 3 else ("2026-09-30", "2026-11-02")
t = defaultdict(dict)
for n in NOMS:
for f in sorted(glob.glob(f"{D}/WILDSTRUBEL_{n}_2026_*.csv")):
for r in csv.DictReader(open(f)):
h = r["time_utc"][:16]
if debut <= h[:10] <= fin:
t[h][n] = r["metric"]
print("heure;" + ";".join(NOMS))
for h in sorted(t):
print(h + ";" + ";".join(t[h].get(n, "") for n in NOMS))