sessions of 2026-11-18 (the optimization campaign; three runs without summary, interrupted and rerun)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-18 17:47:59 +01:00
1 parent 8a81c53cd9
commit 0cfbd1b7bc
363 files changed
+30822

No files matched your search

@@ -0,0 +1,15 @@
# The raw episodes of every detector (before categories.py) overlapping a time span. Args: <detectors folder> <station folder> <from YYYY-MM-DDTHH:MM> <to YYYY-MM-DDTHH:MM>
import importlib, sys
from datetime import timedelta
from pathlib import Path
det = Path(sys.argv[1]).resolve()
sys.path[:0] = [str(det / "scripts"), str(Path.home() / "aimsight-tools" / "scripts")]
from data import load, parse_time # noqa: E402
a, b = sys.argv[3] + "Z", sys.argv[4] + "Z"
ms = load(sys.argv[2])
h0, h1 = parse_time(a) - timedelta(days=3), parse_time(b) + timedelta(days=1)
chunk = {s: k for s, v in ms.items() if (k := [m for m in v if h0 <= m["t"] < h1])}
for name in ("visibility", "displacement", "target_issue", "thermal_displacement"):
for e in importlib.import_module(name).detect(chunk):
if e["start"] <= b and e["end"] >= a:
print(name, e["start"], e["end"], e["kind"], e["label"], len(e["sensors"]), ",".join(e["sensors"]))