Commit d0684be
Move analytics export to local desktop, add freshness banner
The VPS pipeline lacks statsmodels/scipy and was silently failing on the
analytics export step. Rather than install heavy scientific Python on the
VPS, scripts/export_analytics_data.py now runs locally on the WSL desktop
where statsmodels + RTX 4090 already live; the resulting analytics_*.json
files plus a public/data/last_refreshed_analytics.json stamp are committed
to this repo and picked up by the next VPS pipeline run.
The Causal Analytics tab now reads the stamp on mount and shows
"last refreshed Thu, 28 May 2026 21:55 UTC (0.0 days ago)" — turns yellow
with a "stale, please re-run" warning when >7 days old.
Wrapper: ~/.local/bin/update_redlines_analytics.sh on the desktop.
See README.md "Local-compute analytics" section for the full rationale.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8334623 commit d0684be
3 files changed
Lines changed: 79 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
70 | 96 | | |
71 | 97 | | |
72 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
3 | 11 | | |
4 | 12 | | |
5 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
1 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
2 | 44 | | |
3 | 45 | | |
| 46 | + | |
4 | 47 | | |
5 | 48 | | |
6 | 49 | | |
| |||
82 | 125 | | |
83 | 126 | | |
84 | 127 | | |
85 | | - | |
| 128 | + | |
0 commit comments