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,18 @@
"""Per sensor, deviation (in own noise) from the median of a calm window, at chosen instants; from a summary table."""
import sys, statistics as st
f, (a, b), inst = sys.argv[1], sys.argv[2].split('/'), sys.argv[3].split(',')
rows, hdr = [], None
for line in open(f):
p = line.split()
if p and p[0] == 'start': hdr = p[1:]; continue
if hdr and p and p[0].startswith('2026-'): rows.append((p[0][:16], p[1:]))
def val(s):
try: return float(s.rstrip('*o'))
except ValueError: return None
print('sensor ' + ' '.join(f"{t[5:]:>12s}" for t in inst))
for i, s in enumerate(hdr):
ser = [val(v[i]) for t, v in rows if val(v[i]) is not None]
noise = st.median(abs(y - x) for x, y in zip(ser, ser[1:])) or 1e-9
lev = st.median(val(v[i]) for t, v in rows if a <= t <= b and val(v[i]) is not None)
d = dict((t, val(v[i])) for t, v in rows)
print(f"{s:11s}" + ' '.join(f"{((d[t] - lev) / noise) if d.get(t) is not None else float('nan'):+12.1f}" for t in inst))