From 6f32aa672bdeaa043a9cf3f81c5c35801bdd741c Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 27 Jun 2024 18:03:57 +0100 Subject: [PATCH] Added corrections to walls cleaning class --- etl/epc_clean/epc_attributes/WallAttributes.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etl/epc_clean/epc_attributes/WallAttributes.py b/etl/epc_clean/epc_attributes/WallAttributes.py index 09eac215..49252552 100644 --- a/etl/epc_clean/epc_attributes/WallAttributes.py +++ b/etl/epc_clean/epc_attributes/WallAttributes.py @@ -75,12 +75,19 @@ class WallAttributes(Definitions): 'insulation_thickness', 'external_insulation', 'internal_insulation' ] + CORRECTIONS = { + "Granite or whin, as built, no insulation (assumed)": "Granite or whinstone, as built, no insulation (assumed)", + } + def __init__(self, description: str): """ :param description: Description of the walls. """ self.description: str = description + if self.description in self.CORRECTIONS: + self.description = self.CORRECTIONS[self.description] + self.welsh_translation_search() self.nodata = not description or description in self.DATA_ANOMALY_MATCHES