From 73692e96ee68738a8d7daaf4b637c8176a9daf08 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 2 Feb 2026 14:17:18 +0000 Subject: [PATCH] added sloping ceiling description and notes of efficiency categorisations --- backend/onboarders/epc_descriptions.py | 6 ++++-- backend/onboarders/parity.py | 13 +++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/backend/onboarders/epc_descriptions.py b/backend/onboarders/epc_descriptions.py index a4f0be13..280b180f 100644 --- a/backend/onboarders/epc_descriptions.py +++ b/backend/onboarders/epc_descriptions.py @@ -168,9 +168,11 @@ class EpcRoofDescriptions(Enum): thatched = "Thatched" # We see this for no insulation, has average performance thatched_with_additional_insulation: str = "Thatched, with additional insulation" - # TODO: # Sloping ceiling - # Pitched, as built + # For sloping ceiling tags, we don't use any (assumed) tags so that it's unambiguous that the roof is sloped + sloping_pitched_no_insulation: str = "Pithced, no insulation" + sloping_pitched_limited_insulation: str = "Pitched, limited insulation" + sloping_pitched_insulated: str = "Pitched, insulated" class EpcEfficiency(Enum): diff --git a/backend/onboarders/parity.py b/backend/onboarders/parity.py index 988ee01e..cb9b4f7f 100644 --- a/backend/onboarders/parity.py +++ b/backend/onboarders/parity.py @@ -304,6 +304,19 @@ roof_aggs = data[["Roof Construction", "Roof Insulation"]].drop_duplicates().to_ {'Roof Construction': 'PitchedWithSlopingCeiling', 'Roof Insulation': 'NoInsulation'}, {'Roof Construction': 'PitchedWithSlopingCeiling', 'Roof Insulation': 'Unknown'}, + # Sloping ceiling: + # With measured insulation + # 12mm insulation: Pitched, limited insulation, Very Poor + # 25mm, 50mm insulation: Pitched, limited insulation, Poor + # 75mm - 125mm, Pitched, insulated, average + # 150mm - 250mm, Pitched, insulated, good + # 270mm+, Pitched, insulated, very good + # As built / unknown: + # before 1900, 1900-1929, 1930-1949, 1950-1966, 1967-1975, -> Pitched, no insulation, Very Poor + # 1976-1982 -> Pitched, limited insulation, Poor + # 1983-1990, to 1996-2002 Pitched, insulated, Average + # 2003 - 2006, 2012-2022 -> Pitched, insulated, Good + # 2023 onwards -> Pitched, insulated, Very Good ] roof_mapping = {