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:
1 parent
8a81c53cd9
commit
0cfbd1b7bc
363 files changed
+30822
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# Prints every event of categories.window over a window with all its episodes (start, end, label, first sensors): where each episode went. Args: <detectors dir> <station folder> <from> <to>
|
||||
import sys
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
det = Path(sys.argv[1]).resolve()
|
||||
sys.path[:0] = [str(det / "scripts")]
|
||||
import categories
|
||||
from data import load
|
||||
day = lambda d: datetime.strptime(d, "%Y-%m-%d").replace(tzinfo=timezone.utc)
|
||||
for v in categories.window(load(sys.argv[2]), day(sys.argv[3]), day(sys.argv[4])):
|
||||
print(v["start"], v["end"], v["category"])
|
||||
for e in v["episodes"]:
|
||||
print(" ", e["start"], e["end"], e["label"], ",".join(e["sensors"])[:40])
|
||||
Reference in new issue
Block a user