Files
aimsight-labeling/auto/revue-croisee/2026-11-04/no-data/outils/hors_lots.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

14 lines
969 B
Python

"""Les trous des plages jamais données à l'etiqueteur (HORS de trous.py), pour les dire sans les étiqueter, et les étiquettes No data qui y sont déjà."""
import os, statistics
from datetime import timedelta
exec(open(os.path.join(os.path.dirname(__file__), 'trous.py')).read().split('tous = {}')[0])
for st, (a, b) in HORS.items():
a, b = d(a), d(b); ts = instants(st, a, b)
pas = statistics.median([(y - x).total_seconds() for x, y in zip(ts, ts[1:])])
g = [(x, y) for x, y in zip(ts, ts[1:]) if (y - x).total_seconds() > 1.5 * pas and a <= x < b]
es = [e for e in etiquettes(st) if e[3] == 'No data' and a <= e[1] < b]
print(f'{st} {a:%m-%d} -> {b:%m-%d} : {len(g)} trous, dont {sum((y - x).total_seconds() <= 2.5 * pas for x, y in g)} d\'une mesure ; '
f'étiquettes No data déjà là : {", ".join(i for i, *_ in es) or "aucune"}')
for x, y in g:
if (y - x).total_seconds() > 2.5 * pas: print(f' {h(x)} -> {h(y)}')