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:
1 parent
df979301b5
commit
2a5d87659b
279 files changed
+10758
-710
No files matched your search
@@ -0,0 +1,18 @@
|
||||
"""Median per 15 min of corr_x (or corr_y) of sensors minus their median over a base window.
|
||||
Usage: drift.py COL BASE_START BASE_END START END S1,S2,..."""
|
||||
import sys, statistics as st
|
||||
from datetime import timedelta
|
||||
sys.path.insert(0, __file__.rsplit('/', 1)[0]); sys.path.insert(0, 'tools/scripts')
|
||||
from scan import load
|
||||
import data
|
||||
by, refs, cam = load()
|
||||
col, b0, b1, t0, t1, S = sys.argv[1], *map(data.parse_time, sys.argv[2:6]), sys.argv[6].split(',')
|
||||
base = {s: st.median([m[col] for m in by[s] if m[col] is not None and b0 <= m['t'] <= b1]) for s in S}
|
||||
print('time ' + ' '.join(f'{s:>7}' for s in S))
|
||||
cur = t0
|
||||
while cur <= t1:
|
||||
row = []
|
||||
for s in S:
|
||||
v = [m[col] for m in by[s] if m[col] is not None and cur <= m['t'] < cur + timedelta(minutes=15)]
|
||||
row.append(f'{st.median(v) - base[s]:+7.3f}' if v else ' -')
|
||||
print(data.iso(cur)[5:], ' '.join(row)); cur += timedelta(minutes=15)
|
||||
Reference in new issue
Block a user