From 6c544640eef1461e81b7f1ffd190f9aea207f578 Mon Sep 17 00:00:00 2001 From: maxime Date: Mon, 2 Nov 2026 10:27:32 +0100 Subject: [PATCH] Labels in two folders: manual/ (by hand, checked with the label-reviewer, the tool's) and auto/ (what the analyst will find alone, empty) (D-102) Co-Authored-By: Claude Opus 5.5 --- auto/.gitkeep | 0 labeling.py | 6 +++--- CLARIDEN.jsonl => manual/CLARIDEN.jsonl | 0 FLORIDA.jsonl => manual/FLORIDA.jsonl | 0 JUNGFRAU.jsonl => manual/JUNGFRAU.jsonl | 0 NIEDERHORN.jsonl => manual/NIEDERHORN.jsonl | 0 NORDEND.jsonl => manual/NORDEND.jsonl | 0 PS_DES_COUDRES.jsonl => manual/PS_DES_COUDRES.jsonl | 0 WILDSTRUBEL.jsonl => manual/WILDSTRUBEL.jsonl | 0 9 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 auto/.gitkeep rename CLARIDEN.jsonl => manual/CLARIDEN.jsonl (100%) rename FLORIDA.jsonl => manual/FLORIDA.jsonl (100%) rename JUNGFRAU.jsonl => manual/JUNGFRAU.jsonl (100%) rename NIEDERHORN.jsonl => manual/NIEDERHORN.jsonl (100%) rename NORDEND.jsonl => manual/NORDEND.jsonl (100%) rename PS_DES_COUDRES.jsonl => manual/PS_DES_COUDRES.jsonl (100%) rename WILDSTRUBEL.jsonl => manual/WILDSTRUBEL.jsonl (100%) diff --git a/auto/.gitkeep b/auto/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/labeling.py b/labeling.py index f18a899..1be5833 100644 --- a/labeling.py +++ b/labeling.py @@ -2,7 +2,7 @@ voit, en langage naturel, sans catégorie ; les données se consultent sur le monitoring. En haut, le data loader de la page Status ; un menu déroulant, un plot à la fois, comme le menu Advanced d'Explore, plus les métriques système numériques de metrics/ (« System: … », sans les identifiants) ; dessous, une barre de temps aux mêmes abscisses, qui suit le zoom : y glisser sélectionne une plage, puis du texte et Add. Add écrit aussitôt une ligne dans -labeling/.jsonl : {"debut": "2026-10-08T01:00Z", "fin": "2026-10-08T02:45Z", "description": "…"}, en UTC, les noms +labeling/manual/.jsonl (D-102) : {"debut": "2026-10-08T01:00Z", "fin": "2026-10-08T02:45Z", "description": "…"}, en UTC, les noms de champs de l'analyste (etiquettes.json). Les zones étiquetées sont grisées sur tous les plots ; sur la barre, une barre chacune, son texte au survol, celles qui se chevauchent l'une sous l'autre. Un clic sur l'une l'affiche dessous, et Save y enregistre son nouveau texte, Delete la retire ; ses bornes se corrigent dans ce fichier, puis recharger la page. Au survol @@ -279,7 +279,7 @@ textarea{{width:100%;box-sizing:border-box;font:inherit;padding:6px}} select,but def fichier(station): - return ICI / f"{station}.jsonl" + return ICI / "manual" / f"{station}.jsonl" def lire(station): @@ -361,7 +361,7 @@ class Serveur(chargeur.Chargeur): try: self.repond(lire(station)) except ValueError as e: # une ligne abîmée à la main : le dire, sans toucher au fichier - self.send_error(500, f"labeling/{station}.jsonl unreadable: {e}") + self.send_error(500, f"labeling/manual/{station}.jsonl unreadable: {e}") def ecrit(self, action): if self.path != "/labels": diff --git a/CLARIDEN.jsonl b/manual/CLARIDEN.jsonl similarity index 100% rename from CLARIDEN.jsonl rename to manual/CLARIDEN.jsonl diff --git a/FLORIDA.jsonl b/manual/FLORIDA.jsonl similarity index 100% rename from FLORIDA.jsonl rename to manual/FLORIDA.jsonl diff --git a/JUNGFRAU.jsonl b/manual/JUNGFRAU.jsonl similarity index 100% rename from JUNGFRAU.jsonl rename to manual/JUNGFRAU.jsonl diff --git a/NIEDERHORN.jsonl b/manual/NIEDERHORN.jsonl similarity index 100% rename from NIEDERHORN.jsonl rename to manual/NIEDERHORN.jsonl diff --git a/NORDEND.jsonl b/manual/NORDEND.jsonl similarity index 100% rename from NORDEND.jsonl rename to manual/NORDEND.jsonl diff --git a/PS_DES_COUDRES.jsonl b/manual/PS_DES_COUDRES.jsonl similarity index 100% rename from PS_DES_COUDRES.jsonl rename to manual/PS_DES_COUDRES.jsonl diff --git a/WILDSTRUBEL.jsonl b/manual/WILDSTRUBEL.jsonl similarity index 100% rename from WILDSTRUBEL.jsonl rename to manual/WILDSTRUBEL.jsonl