The single reader: data.py of the tools repository (sibling ~/aimsight-tools), located once in categories.py

scripts/data.py removed; the detectors' standalone CLIs go (categories.py runs them).
Benchmark identical to the baseline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-16 15:25:01 +01:00
1 parent 908369b9e9
commit 5e9a7aa9d1
11 files changed
+16 -215

No files matched your search

+2 -11
View File
@@ -34,15 +34,11 @@ Stuck target (E-011, FLORIDA: a target defined on the prism of a reference): per
corr_y (median of the gaps from one measurement to the next) under STUCK times the median noise of the other targets, on
both axes; one day is enough (a day without noise does not happen by accident); label "Target stuck". On E-011: C2 at
7e-5 px and C3 at 2e-4 against 0.013 for the others.
Usage: python3 scripts/target_issue.py <station folder> (prints the episodes)
"""
import os
import statistics
import sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) # data.py and the detectors, next to it
import displacement # noqa: E402
from data import is_reference, iso, load # noqa: E402
import displacement
from data import is_reference, iso
CALM = 0.25 # share of the other sensors rejected, at most, for a calm instant
SHARE = 0.5 # half of the calm instants rejected: "most of the time"
@@ -177,8 +173,3 @@ def stuck(measurements, min_instants):
def detect(measurements):
return sorted((e for e in episodes(measurements) + displacement.episodes(measurements) if e["kind"] == "Target issue"),
key=lambda e: e["start"])
if __name__ == "__main__":
for e in detect(load(sys.argv[1])):
print(e)