From b6ec01c1e5a4c6438bf360b19f09e870fd845a5b Mon Sep 17 00:00:00 2001 From: maxime Date: Thu, 15 Oct 2026 17:36:19 +0200 Subject: [PATCH] Strip sensor names in the diagnostic tools Co-Authored-By: Claude Opus 5.5 --- agents/diagnostic/outils/donnees.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/diagnostic/outils/donnees.py b/agents/diagnostic/outils/donnees.py index 9106e17..161ce46 100644 --- a/agents/diagnostic/outils/donnees.py +++ b/agents/diagnostic/outils/donnees.py @@ -54,7 +54,7 @@ def charger(dossier): m = {c: _nombre(r[c]) for c in NUM} m["t"] = instant(r["time_utc"]) m["pattern_type"] = r["pattern_type"] - par.setdefault(r["sensor_name"], {})[m["t"]] = m + par.setdefault(r["sensor_name"].strip(), {})[m["t"]] = m # certains exports finissent le nom par un saut de ligne return {s: [d[t] for t in sorted(d)] for s, d in par.items()}