Files
aimsight-labeling/auto/revue-croisee/2026-11-04/finition/nordend/outils/rigide.py
T
maximeandClaude Opus 5.5 14ad6ea3f9 Auto labels reviewed per station and cross-reviewed; all labeling knowledge in labeling/ (D-130)
- Every station's auto labels reviewed by an analyst (/review-auto-labels), then a
  cross-review per family across all stations (new skill /cross-review-labels),
  a finishing pass, and descriptions rewritten in words (no numeric values).
- The three never-labeled ranges (WILDSTRUBEL 07/09-01/10, NORDEND 16/08-01/10)
  labeled and reviewed: 991 auto labels on 11 stations, labeling/controle.py at 0 errors.
- Labeling knowledge gathered in labeling/: regles-d-etiquetage.md (new), familles.md
  (settled boundaries), connaissances/ (notes moved from docs/, links updated),
  the label map rebuilt from reviewed labels, events and cases; events tied to their
  stations (PS_DES_COUDRES is JUNGFRAU). The labeler and reviewers read only labeling/.
- labels-map reads auto labels and events; decision D-130; living plan points 73-75.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 08:21:57 +01:00

18 lines
1.0 KiB
Python

"""Lance ensemble.py --rigide sur chaque étiquette Thermal displacement de NORDEND (BASE = debut de l'étiquette,
fenêtre = l'étiquette), garde la sortie texte dans ../rigide/<id>.txt et les PNG dans ../fig/.
Usage, depuis la racine : python3 <ce fichier> [ID ...]"""
import json, os, subprocess, sys
ICI = os.path.dirname(os.path.abspath(__file__))
SORTIE = os.path.join(ICI, "..", "rigide")
FIG = os.path.join(ICI, "..", "fig")
os.makedirs(SORTIE, exist_ok=True)
lignes = [json.loads(l) for l in open("labeling/auto/NORDEND.jsonl")]
ids = [int(x.lstrip("#")) for x in sys.argv[1:]] or [i + 1 for i, l in enumerate(lignes) if l["categorie"] == "Thermal displacement"]
for i in ids:
l = lignes[i - 1]
r = subprocess.run([".venv/bin/python", "agent-tools/ensemble.py", "data/NORDEND", "--debut", l["debut"], "--fin", l["fin"],
"--rigide", l["debut"], "--table", "non", "--sortie", FIG], capture_output=True, text=True)
open(os.path.join(SORTIE, f"{i}.txt"), "w").write(r.stdout + r.stderr)
print(i, r.returncode)