Repository navigation
Commit 2e70e45
fix(output): the plan's first row shows its rates from now
The first row of the plan covers now to the end of its plan interval: its time
and its car, PV and load kWh all start at minute_start. Its Import and Export
rates were read at the aligned interval start instead, a minute already in the
past. A rate that changed earlier in the interval was then shown for the whole
row. For example, a cancelled Intelligent dispatch still showed its 6.90p
discount after the plan had moved the rest of the half hour to the day rate.
The rate cells, a merged row's min-max range, and the replicated-rate symbol
now all read from minute_start. Every later row starts on its interval
boundary, so only the first row can change. The JSON slot_minute stays the
aligned start, which the override system keys on.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent d8c60df commit 2e70e45
2 files changed
Lines changed: 37 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
1184 | | - | |
1185 | | - | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
1186 | 1189 | | |
1187 | 1190 | | |
1188 | 1191 | | |
| |||
1231 | 1234 | | |
1232 | 1235 | | |
1233 | 1236 | | |
1234 | | - | |
| 1237 | + | |
1235 | 1238 | | |
1236 | 1239 | | |
1237 | 1240 | | |
| |||
1243 | 1246 | | |
1244 | 1247 | | |
1245 | 1248 | | |
1246 | | - | |
| 1249 | + | |
1247 | 1250 | | |
1248 | 1251 | | |
1249 | 1252 | | |
| |||
1553 | 1556 | | |
1554 | 1557 | | |
1555 | 1558 | | |
1556 | | - | |
| 1559 | + | |
1557 | 1560 | | |
1558 | 1561 | | |
1559 | 1562 | | |
| |||
1566 | 1569 | | |
1567 | 1570 | | |
1568 | 1571 | | |
1569 | | - | |
| 1572 | + | |
1570 | 1573 | | |
1571 | 1574 | | |
1572 | 1575 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
242 | 270 | | |
243 | 271 | | |
244 | 272 | | |
| |||
0 commit comments