- 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>
21 lines
947 B
Python
21 lines
947 B
Python
"""Per-day rejection rate of R3 (and the other references), by day (05-16 UTC) and by night, over a window."""
|
|
import sys, collections
|
|
sys.path.insert(0, "tools/scripts")
|
|
import data
|
|
D = data.load("data/WILDSTRUBEL")
|
|
start, end = data.parse_time(sys.argv[1]), data.parse_time(sys.argv[2])
|
|
refs = [s for s, ms in D.items() if data.is_reference(ms)]
|
|
print("references:", refs)
|
|
for s in refs:
|
|
tot = collections.Counter(); rej = collections.Counter()
|
|
T = [0, 0]
|
|
for m in D[s]:
|
|
if not (start <= m["t"] < end): continue
|
|
day = m["t"].strftime("%m-%d"); dn = "D" if 5 <= m["t"].hour < 16 else "N"
|
|
tot[day, dn] += 1; T[0] += 1
|
|
if data.rejected(m): rej[day, dn] += 1; T[1] += 1
|
|
print(f"{s}: {T[1]}/{T[0]} rejected")
|
|
if s == "R3" or "-v" in sys.argv:
|
|
for day in sorted({d for d, _ in tot}):
|
|
print(" ", day, " ".join(f"{dn} {rej[day,dn]}/{tot[day,dn]}" for dn in "DN" if tot[day, dn]))
|