You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 537e9b2
Browse filesBrowse the repository at this point in the historyBrowse files
Honour day_of_week when seeding rates beyond the modelled days
basic_rates() seeds the slot past the days it models so rate_replicate()
has something to copy forward, but that write ignored the rule's
day_of_week filter - so the last rule processed for a given time of day
won there whatever the weekday, and a weekend catch-all flattened the
weekday peaks 48 hours out.
Fixes#5168
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
# Test 13: the export config from issue #5168 - weekday rules tiling the whole day plus a
297
+
# weekend catch-all. The weekend rule is processed last, and before the fix its seeding write
298
+
# for the day beyond the ones basic_rates() models ignored day_of_week, so it flattened that
299
+
# day to the weekend rate and the weekday peaks vanished 48 hours out
300
+
print("*** Running test: Weekend day_of_week rule must not flatten future weekdays (issue #5168)")
301
+
saved_midnight_utc=my_predbat.midnight_utc
302
+
my_predbat.midnight_utc=my_predbat.local_tz.localize(datetime.strptime("2025-07-06T00:00:00", "%Y-%m-%dT%H:%M:%S")) # Sunday, so the third day is Tuesday
0 commit comments