EV-20 review round 1: no 1-phase current on 3 phases after a select; rows for mE, mF, mC
After its own phase select (taken, or with a late read-back), Solar ends the sequence with the lower of the currents for the new phases and the phases the charger reports, and keeps the plan on them; the old phases' current comes back only when no select went out (EV-28's cap). Rows: T19/T33 settle write refused or ignored once and select confirmed late; an exit after a given-up write; shutdown in Off with the 0 A owed; Stop with a refused 0 A and another writer. NoCharger.write_current takes took_s; ev_mode_start text names C1; NL solar_hold wording. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
This commit is contained in:
@@ -551,6 +551,34 @@ for name, (t0, ev, opts) in PATHS.items():
|
||||
and "charger_refused" in [x["id"] for x in blk.get("rows", [])]
|
||||
and "paused" not in blk.get("b", {}).get("why", "paused"))
|
||||
|
||||
# Review round 1, Major 2 (mutant mE): an exit after a given-up non-zero write.
|
||||
# Solar at 10 A; 13 A refused at 200, 260 and 320 s (given up); Off at 340 s:
|
||||
# its 0 A has its own tries and goes out at once (N9).
|
||||
simE = TSim(setpoint_a=0, windows=[(195.0, 330.0, "error")])
|
||||
rE = std(600, sim=simE, sun=step_fn((200, 3600.0), base=2900.0),
|
||||
events={340: act("car_mode", "off")})
|
||||
aE = attempts(rE)
|
||||
eo = [(t, v) for t, v in aE if t >= 340]
|
||||
check(f"T36 [exit after a given-up write]: 13 A refused three times, then "
|
||||
f"Off: the 0 A at once (340 s) and the charger at 0 A ({aE})",
|
||||
[v for t, v in aE if 195 <= t < 340] == [13.0, 13.0, 13.0]
|
||||
and present(nth(eo, 0)) and nth(eo, 0)[1] == 0.0
|
||||
and nth(eo, 0)[0] <= 342 and simE.setpoint_a == 0.0)
|
||||
|
||||
# Review round 1, Major 4 (mutant mC): shutdown in Off while the exit 0 A is
|
||||
# still owed: tried before the inverters' 0 W (E9, D3, N9).
|
||||
simC = TSim(setpoint_a=0, windows=[(299.0, 1e9, "error")])
|
||||
rC = std(330, sim=simC, events={300: act("car_mode", "off")},
|
||||
finale=_shutdown)
|
||||
oC = sets_order(rC)
|
||||
zC = [i for i, (t, e, v) in enumerate(oC) if e == SET and v == 0.0
|
||||
and t >= 329]
|
||||
iC = [i for i, (t, e, v) in enumerate(oC)
|
||||
if e.startswith("number.sp_") and v == 0.0 and t >= 329]
|
||||
check(f"T23/T36 [shutdown in Off, the 0 A still owed]: tried (3 times) "
|
||||
f"before the inverters' 0 W ({[x for x in oC if x[0] >= 329][:6]})",
|
||||
len(zC) == 3 and present(nth(iC, 0)) and nth(zC, 0) < nth(iC, 0))
|
||||
|
||||
# T37: shutdown while a start write waits for its read-back.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user