auto: the analysts verified the labels of 32 periods (11 stations, up to 14 days each): 710 labels -> 835, 587 unchanged; one analysis folder per period with its report (section Verification)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-17 15:13:44 +01:00
1 parent df979301b5
commit 2a5d87659b
279 files changed
+10758 -710

No files matched your search

@@ -0,0 +1,15 @@
"""Median corr_x / corr_y of each sensor over chosen windows (accepted measurements), to compare levels across days."""
import sys, os, pickle, statistics
sys.path.insert(0, "tools/scripts")
import data
D, CAM = pickle.load(open(os.path.join(os.path.dirname(__file__), "..", "work", "cache.pkl"), "rb"))
W = sys.argv[2:]
col = sys.argv[1]
print("sensor " + " ".join("%9s" % w.split("/")[0][5:13] for w in W))
for s in sorted(D, key=lambda s: (not s.startswith("CTR0") or s == "CTR01", s)):
out = []
for w in W:
a, b = map(data.parse_time, w.split("/"))
v = [m[col] for m in data.filter_window(D[s], a, b) if m[col] is not None and not data.rejected(m)]
out.append("%9.3f" % statistics.median(v) if v else " -")
print("%-6s" % s, " ".join(out))