From e0d3d3fd2ae7299d53e2cd2780d8d6ddf95ee251 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Thu, 11 Jun 2026 12:01:13 +0000 Subject: [PATCH] =?UTF-8?q?Map=20chimneys,=20draughtproofing=20and=20shelt?= =?UTF-8?q?ered=20sides=20for=2018.0=20certs=20=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- datatypes/epc/domain/mapper.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/datatypes/epc/domain/mapper.py b/datatypes/epc/domain/mapper.py index a1ec7d68..e738f381 100644 --- a/datatypes/epc/domain/mapper.py +++ b/datatypes/epc/domain/mapper.py @@ -776,9 +776,15 @@ class EpcPropertyDataMapper: heated_rooms_count=schema.heated_room_count, wet_rooms_count=0, extensions_count=schema.extensions_count, - open_chimneys_count=0, + open_chimneys_count=schema.open_fireplaces_count, insulated_door_count=schema.insulated_door_count, draughtproofed_door_count=None, + percent_draughtproofed=schema.percent_draughtproofed, + # ADR-0028: sheltered_sides must come from built_form, else the + # calculator assumes mid-terrace (2) for every dwelling. + sap_ventilation=SapVentilation( + sheltered_sides=_api_sheltered_sides(schema.built_form), + ), # ADR-0028: 18.0 gives total + low-energy OUTLET counts, not an # LED/CFL/incandescent split. Low-energy -> the calculator's LEL # path; the remainder is incandescent (1 outlet ~= 1 bulb).