MAINT-28: keep the single shaping_suspended(.., maint_aim) call site (test_peak_margin pin); shaping_held takes its answer
checks / unit (pull_request) Successful in 32m46s
infra-pin / fresh (pull_request) Successful in 1s

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
glenn schrooyen
2026-11-12 23:58:19 +01:00
co-authored by Claude
parent 23359a047d
commit edf30f345a
4 changed files with 18 additions and 11 deletions
+7 -1
View File
@@ -210,7 +210,13 @@ check("a new maintenance charge at house 5700 W (over the resume line) "
# ============================================================================ #
print("\n2. peakguard.shaping_held()")
held = peakguard.shaping_held
def held(was, decision, fc, aim, house):
return peakguard.shaping_held(
peakguard.shaping_suspended(decision, fc, aim), was, fc, aim, house)
U = peakguard.MAINT_RESUME_UNDER_W
eng = peakguard.PeakDecision(engaged=True, floor_w=100.0, ceiling_w=6000.0,
ceiling_from="x", target_w=AIM)