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,24 @@
|
||||
"""Per station, per target and axis: its noise (median step) relative to the median noise of the station's targets on that axis, lowest first.
|
||||
Usage: python3 noises.py <data folder> [STATION ...]
|
||||
"""
|
||||
import statistics
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path("/home/maxime/aimsight-optimizer")
|
||||
sys.path[:0] = [str(ROOT / "detectors" / "scripts"), str(ROOT / "tools" / "scripts")]
|
||||
from data import load, is_reference # noqa: E402
|
||||
from episodes import noise # noqa: E402
|
||||
|
||||
data = Path(sys.argv[1])
|
||||
names = sys.argv[2:] or sorted(p.name for p in data.iterdir() if p.is_dir())
|
||||
for st in names:
|
||||
ms_all = load(str(data / st))
|
||||
for ax in ("corr_x", "corr_y"):
|
||||
ns = {s: noise([m[ax] for m in ms if m[ax] is not None]) for s, ms in ms_all.items() if not is_reference(ms)}
|
||||
ns = {s: n for s, n in ns.items() if n}
|
||||
if not ns:
|
||||
continue
|
||||
med = statistics.median(ns.values())
|
||||
low = sorted(ns.items(), key=lambda x: x[1])[:4]
|
||||
print(st, ax, f"median {med:.4f}", " ".join(f"{s}={n / med:.3f}" for s, n in low))
|
||||
Reference in new issue
Block a user