From 9fe9586d06170195d2aadd95c3ac3963d602716b Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 24 Sep 2024 19:40:02 +0100 Subject: [PATCH] adding new mainfuel community heating description --- etl/epc_clean/epc_attributes/MainFuelAttributes.py | 3 ++- etl/epc_clean/epc_attributes/MainheatAttributes.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/etl/epc_clean/epc_attributes/MainFuelAttributes.py b/etl/epc_clean/epc_attributes/MainFuelAttributes.py index 72b86482..9bb53ff1 100644 --- a/etl/epc_clean/epc_attributes/MainFuelAttributes.py +++ b/etl/epc_clean/epc_attributes/MainFuelAttributes.py @@ -50,7 +50,8 @@ class MainFuelAttributes(Definitions): NO_INDIVIDUAL_HEATING_OR_COMMUNITY_NETWORK = [ 'to be used only when there is no heatinghotwater system or data is from a community network', - 'to be used only when there is no heatinghotwater system' + 'to be used only when there is no heatinghotwater system', + 'community heating schemes waste heat from power stations', ] def __init__(self, description: str): diff --git a/etl/epc_clean/epc_attributes/MainheatAttributes.py b/etl/epc_clean/epc_attributes/MainheatAttributes.py index 16897133..2d482125 100644 --- a/etl/epc_clean/epc_attributes/MainheatAttributes.py +++ b/etl/epc_clean/epc_attributes/MainheatAttributes.py @@ -67,6 +67,7 @@ class MainHeatAttributes(Definitions): "solar-assisted heat pump": "solar assisted heat pump", "portable electric heating": "portable electric heaters", "portable electric heating assumed for most rooms": "portable electric heaters assumed for most rooms", + "electric storage, electric": "electric storage heaters", } edge_case_result = {} @@ -98,6 +99,10 @@ class MainHeatAttributes(Definitions): self.description = remapped + backup_remap = self.REMAP.get(self.description) + if backup_remap: + self.description = backup_remap + self.process_edge_cases() if not self.nodata: