EV-15: the add-on's own phase change at the peak reserve raises no false alarm #262

Merged
admin merged 4 commits from EV-15 into release/1.0 2026-11-17 17:15:52 +01:00
Showing only changes of commit 07f703d1bc - Show all commits
+1 -1
View File
@@ -107,7 +107,7 @@ for name, house, cap, t_res, t_sw, new in SHAPES:
== [0.0, 16.0] and sim.phases_allowed == new)
pause = [x for x in tr if x[1]]
check(f"{name}: the own-pause grace was on during it, and ended",
len(pause) >= 10 and not tr[-1][1]
len(pause) >= 10 and not any(x[1] for x in tr[-1:])
and (pause[-1][0] - pause[0][0])
<= getattr(ctl_car, "OWN_PAUSE_MAX_S", 0)
+ getattr(ctl_car, "OWN_PAUSE_TAIL_S", 0))