Labeler agent: an analyst that only produces labels (etiqueteur, D-106), one category per label (D-107), anomalies only and one Thermal displacement category (D-108); second trial on JUNGFRAU 30.09-05.10, 15 labels; the labeling tool gets a Category box above the text, to add and to edit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-02 14:44:08 +01:00
1 parent 2cd129413e
commit 7d43f213df
37 files changed
+3787 -20

No files matched your search

@@ -0,0 +1,20 @@
"""Températures horaires (et tension, courant) de la station sur le lot, en table.
Usage : python3 <ce fichier> data/JUNGFRAU 2026-09-30 2026-10-05
"""
import csv, glob, sys
from datetime import date, timedelta
dossier, d0, d1 = sys.argv[1], date.fromisoformat(sys.argv[2]), date.fromisoformat(sys.argv[3])
noms = ["sensor_A0_deg_c", "sensor_CPU_deg_c", "sensor_GPU_deg_c", "sensor_PLL_deg_c", "sensor_thermal_deg_c", "BusVoltage", "BusCurrent", "Power"]
table = {}
d = d0
while d <= d1:
j = d.strftime("%Y_%m_%d")
for n in noms:
for f in glob.glob(f"{dossier}/metrics/*_{n}_{j}_00_00 to {j}_23_00.csv"):
for r in csv.DictReader(open(f)):
table.setdefault(r["time_utc"][:16], {})[n] = r["metric"]
d += timedelta(days=1)
print("instant " + " ".join(f"{n.replace('sensor_','').replace('_deg_c',''):>8}" for n in noms))
for t in sorted(table):
print(t, " ".join(f"{float(table[t][n]) if table[t].get(n) not in (None, '') else float('nan'):8.2f}" for n in noms))