auto: labels requalified under the 5-noise rules (only what stands out from the noise): 32 analyses refined, the 6 paused periods verified, the long labels requalified with the fixes the period analysts found; 1153 -> 961 labels
- 32 analyses: each label kept, rewritten or removed by its analyst (section Requalification of the report; mm magnitudes where the targets have them) - SNCF01 x3, WILDSTRUBEL 2026-09-01 -> 2026-10-06 x3: verified from their existing labels under the new rules - long labels (no analysis): auto/analyses/long-labels/<STATION>/; NORDEND-169 and -195 run to 07/11, so NORDEND-283 and -284 (their continuation) are removed - reading-rules.md, stations.md: the citations of removed or rewritten labels point to their successor, or to [expert] Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c779de7720
commit
ddb17c2189
321 files changed
+18464
-3426
No files matched your search
@@ -0,0 +1,27 @@
|
||||
"""Max |deviation| in noises per label, from ranges.py --k 2 outputs (range extremes)."""
|
||||
import json, re, sys
|
||||
labels = [json.loads(l) for l in open(sys.argv[1])]
|
||||
for f in sys.argv[2:]:
|
||||
print("==", f)
|
||||
col = None
|
||||
rows = []
|
||||
for line in open(f):
|
||||
m = re.match(r"(corr_[xy]): ranges", line)
|
||||
if m: col = m.group(1); continue
|
||||
p = line.split()
|
||||
if col and len(p) >= 7 and re.match(r"\d{4}-", p[1] if len(p) > 1 else ""):
|
||||
# sensor may be glued to the start date
|
||||
m2 = re.match(r"(.+?)(\d{4}-\d\d-\d\dT\d\d:\d\dZ)$", p[0])
|
||||
if m2: sensor, start = m2.groups(); rest = p[1:]
|
||||
else: sensor, start = p[0], p[1]; rest = p[2:]
|
||||
end, n, val, nz, at = rest[0], rest[1], rest[2], rest[3], rest[4]
|
||||
rows.append((col, sensor, at, float(nz)))
|
||||
for L in labels:
|
||||
inside = [r for r in rows if L["start"] <= r[2] <= L["end"]]
|
||||
best = {}
|
||||
for c in ("corr_x", "corr_y"):
|
||||
cand = [r for r in inside if r[0] == c]
|
||||
if cand:
|
||||
b = max(cand, key=lambda r: abs(r[3])); best[c] = f"{b[1]} {b[3]:+.1f} at {b[2]}"
|
||||
else: best[c] = "<2"
|
||||
print(L["id"], L["start"], L["end"], "|", best["corr_x"], "|", best["corr_y"])
|
||||
Reference in new issue
Block a user