Repository navigation
Commit 4d2f7ea
committed
fix: iBoost demand grid covers the fetchable horizon for tariff compare
The tariff compare raises forecast_minutes to 48h after fetch_sensor_data
has run, so a demand grid built over the live forecast_minutes read as
zero for the extended horizon and compared tariffs saw different iBoost
demand. The grid now covers the whole fetchable horizon
(forecast_days + 1 days) and the raw data extent is recorded separately
(iboost_forecast_extent) so the fill pass stays clamped to real data
rather than the grid end. Test helpers reset the extent alongside the
forecast they inject.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016QiqN8TJpbXRsSkph6yNSx1 parent b859553 commit 4d2f7ea
4 files changed
Lines changed: 33 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1021 | 1021 | | |
1022 | 1022 | | |
1023 | 1023 | | |
| 1024 | + | |
1024 | 1025 | | |
1025 | 1026 | | |
1026 | 1027 | | |
| |||
2978 | 2979 | | |
2979 | 2980 | | |
2980 | 2981 | | |
2981 | | - | |
2982 | | - | |
2983 | | - | |
2984 | | - | |
2985 | | - | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
2986 | 2990 | | |
2987 | 2991 | | |
2988 | 2992 | | |
2989 | | - | |
| 2993 | + | |
| 2994 | + | |
2990 | 2995 | | |
2991 | 2996 | | |
2992 | 2997 | | |
| |||
3003 | 3008 | | |
3004 | 3009 | | |
3005 | 3010 | | |
| 3011 | + | |
3006 | 3012 | | |
3007 | 3013 | | |
3008 | 3014 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5513 | 5513 | | |
5514 | 5514 | | |
5515 | 5515 | | |
5516 | | - | |
| 5516 | + | |
5517 | 5517 | | |
5518 | 5518 | | |
5519 | 5519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| 611 | + | |
611 | 612 | | |
612 | 613 | | |
613 | 614 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
| 317 | + | |
316 | 318 | | |
317 | 319 | | |
318 | 320 | | |
| |||
346 | 348 | | |
347 | 349 | | |
348 | 350 | | |
| 351 | + | |
349 | 352 | | |
350 | 353 | | |
351 | 354 | | |
| |||
409 | 412 | | |
410 | 413 | | |
411 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
412 | 431 | | |
413 | 432 | | |
414 | 433 | | |
| |||
0 commit comments