Phase 4: value-drift check (Open-Meteo kept as dormant fallback) #2
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Jinemi/thermograph#2
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/drift-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Final phase of the Open-Meteo migration, ported into the monorepo. Stacked on
feature/metno-recent-flip(Phase 3).Open-Meteo is kept as a dormant last-resort fallback (no deletion — steady state is Open-Meteo-free but the free/keyless safety net stays for reliability). This adds the validation tool.
Adds
backend/drift_check.py: fetches both live history sources (NASA POWER primary + Open-Meteo/ERA5 fallback) for a sample of cells and reports per variable raw drift (MAD/bias/max) and grade-band divergence (share of days whose graded band changes). Doubles as an ERA5-seed fidelity check.Insight baked in: grades are percentiles within each source's own distribution, so a uniform bias moves MAD but not grades — the grade divergence is the number that matters; the tool reports both.
Verified:
cd backend && make test-> 368 passed, 7 skipped. 3 new hermetic tests (per-variable stats + identical-frames-zero-divergence). Per-cell fetch runs on a networked box:python drift_check.py [--limit N] [--days N].Monorepo port complete. The 6 stacked feature branches now cover all of Phases 0-4: geocode-local, history-meteostat-gusts, nasa-primary-flip, era5-seed (pre-existing, now test-verified: 364 passed), + metno-recent-flip (#1) and drift-check (this). Merge bottom-up from
feature/geocode-local.