Model/backend/epc_api/json_samples/real_life_examples
Jun-te Kim 11a637c6bd test(accuracy): ratchet 77.0% -> 77.3% via unsized-cylinder storage-loss fix
A hot-water cylinder lodging gov-API `cylinder_size=0` ("size not
determined", with has_hot_water_cylinder=true) resolved to a None volume
in `_cylinder_storage_loss_override` (which reads `_cylinder_volume_l_
from_code`, returning None for code 0). The subsequent `if volume_l is
None: return None` then DROPPED the cylinder's Table-2 storage loss
entirely — under-costing the DHW and over-rating the dwelling. Meanwhile
the Table-13 high-rate-fraction path already used `_hot_water_cylinder_
volume_l` (which defaults size 0 to 110 L), so the two DHW paths
disagreed on the same cylinder.

RdSAP 10 §10.5 Table 28 ("if the actual size is not determined, the size
is taken as according to Table 28") makes an unsized present cylinder the
110 L "Normal" baseline, which STILL incurs the storage loss. Fixed by
defaulting the storage-loss volume to 110 L for the explicit size-0 case.

Gated on the EXPLICIT 0 (not None): a full-SAP cert whose RdSAP
cylinder_size is simply unlodged (None, e.g. pinned 10091568921) keeps
its own cylinder handling rather than a forced 110 L RdSAP default.

7 corpus certs lodge cylinder_size=0 + has_cylinder=true. Gauge: within
77.0% -> 77.3%, SAP MAE ~flat (0.648), CO2 0.074 -> 0.073, PE 3.2 -> 3.05
(the previously-dropped storage loss now correctly counted in the demand
cascade). Unit-pinned in test_cert_to_inputs (storage loss non-None for
size 0); RealCertExpectation 200004017091 = 71.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 23:02:27 +00:00
..
RdSAP-Schema-17.0 sap score and elmhirst mapper optimsaiation 2026-06-20 07:25:42 +00:00
RdSAP-Schema-17.1 updated sap scaema to take in inputs 2026-06-23 10:22:40 +00:00
RdSAP-Schema-18.0 Add UPRN 100020942571 (8 Booth Close) to the SAP accuracy corpus 2026-07-02 11:31:28 +00:00
RdSAP-Schema-19.0 Add SAP-18.0.0 + SAP-16.0 schema coverage; autonomous-run triage findings 2026-06-16 20:04:43 +00:00
RdSAP-Schema-20.0.0 test(accuracy): pin RdSAP-20.0.0 PV semi uprn_22086693 (PV-list fix corpus) 2026-06-23 16:13:34 +00:00
RdSAP-Schema-21.0.1 test(accuracy): ratchet 77.0% -> 77.3% via unsized-cylinder storage-loss fix 2026-07-02 23:02:27 +00:00
SAP-Schema-16.0 test(accuracy): pin SAP-16.0 storage-flat uprn_10070004512 (built_form fix corpus) 2026-06-23 15:35:06 +00:00
SAP-Schema-16.1/uprn_100021943298 more examples 2026-06-19 09:51:49 +00:00
SAP-Schema-16.2 sap score and elmhirst mapper optimsaiation 2026-06-20 07:25:42 +00:00
SAP-Schema-16.3 data types 2026-06-23 12:42:53 +00:00
SAP-Schema-17.0 neighbouring properties added 2026-06-22 14:38:00 +00:00
SAP-Schema-17.1 sap score and elmhirst mapper optimsaiation 2026-06-20 07:25:42 +00:00
SAP-Schema-18.0.0 Add SAP-18.0.0 + SAP-16.0 schema coverage; autonomous-run triage findings 2026-06-16 20:04:43 +00:00
SAP-Schema-19.1.0/uprn_10096028301 more examples 2026-06-19 09:51:49 +00:00