From 8914496456e9fa8465fdcbbb7689bb234560094d Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 29 Jun 2026 15:40:53 +0000 Subject: [PATCH] =?UTF-8?q?test(accuracy):=20ratchet=20after=20HP=20water-?= =?UTF-8?q?heating=20100%=20floor=20=F0=9F=9F=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Appendix N3.7 water-heating 100% floor drops corpus MAE 0.726 -> 0.721 and lifts within-0.5 74.1% -> 74.2% on the 1000-cert RdSAP-21.0.1 sample (cert 100110101713 moves inside +-0.5). Tighten the MAE ceiling to 0.722 and the within-0.5 floor to 0.742, and log the slice. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../epc_client/test_sap_accuracy_corpus.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/infrastructure/epc_client/test_sap_accuracy_corpus.py b/tests/infrastructure/epc_client/test_sap_accuracy_corpus.py index c489e1ef..20a0eeae 100644 --- a/tests/infrastructure/epc_client/test_sap_accuracy_corpus.py +++ b/tests/infrastructure/epc_client/test_sap_accuracy_corpus.py @@ -193,7 +193,10 @@ _CORPUS = Path( # within-0.5 71.6% -> 72.5%, MAE 0.819 -> 0.815. Surfaced by Khalim's Elmhurst # stress worksheet (simulated case 46): closed its last ventilation residual # (our Jan ACH 9.14 -> 9.0748 exact; SAP 29 -> 30 = accredited Elmhurst). -_MIN_WITHIN_HALF_SAP = 0.74 +# 0.74 -> 0.742 via the heat-pump water-heating 100% floor (App N3.7): cert +# 100110101713 moves inside +-0.5 (|err| 4.97 -> 0.49). See the _MAX_SAP_MAE +# log below for the paired space-heating PSR-extension + water-floor slices. +_MIN_WITHIN_HALF_SAP = 0.742 # 0.793 -> 0.789 via the ยง12 Unknown-meter + dual-electric-immersion off-peak # trigger (RdSAP 10 PDF p.62): Apartment 241 (main 691 + 903 dual immersion) # -5.38 -> -1.05. Worksheet-validated on "simulated case 48" (Elmhurst SAP 57, @@ -257,7 +260,13 @@ _MIN_WITHIN_HALF_SAP = 0.74 # 3.107 over largest 2.0): (206) 334.4% -> 139.66% = Elmhurst exact. Only two # certs move (both oversized-PSR heat pumps): 100110101713 +18.32 -> -4.97 and # 4510053280 -0.61; within-0.5 holds at 74.1%. -_MAX_SAP_MAE = 0.726 +# Then 0.726 -> 0.722 (within-0.5 74.1% -> 74.2%) via the heat-pump water- +# heating 100% floor (SAP 10.2 Appendix N3.7, PDF p.109: in-use x eta_water +# subject to a minimum efficiency of 100%). Only 100110101713 moves: its +# oversized-PSR water eff 0.60 x 128.55% = 77.13% is floored to 100% (= +# accredited Elmhurst (216)), taking the cert 68.03 -> 72.51 (|err| 4.97 -> +# 0.49, now inside +-0.5). In-range heat pumps keep their > 100% water COP. +_MAX_SAP_MAE = 0.722 _MAX_CO2_MAE_TONNES = 0.09 # t CO2 / yr vs co2_emissions_current _MAX_PE_PER_M2_MAE = 3.5 # kWh / m2 / yr vs energy_consumption_current