From b6c56393c08b38a1c62cdaa328c4970d1db655bf Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Fri, 29 Aug 2025 00:45:04 +0100 Subject: [PATCH] filled missing build form with semi-d --- backend/tests/test_integration.py | 2 ++ etl/epc/Record.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/backend/tests/test_integration.py b/backend/tests/test_integration.py index b63faf28..9071ac78 100644 --- a/backend/tests/test_integration.py +++ b/backend/tests/test_integration.py @@ -186,6 +186,8 @@ recommendations = {} recommendations_scoring_data = [] representative_recommendations = {} for p in tqdm(input_properties): + if p.data["property-type"] == "House" and pd.isnull(p.data["built-form"]): + p.data["built-form"] = "Semi-Detached" recommender = Recommendations( property_instance=p, materials=materials, diff --git a/etl/epc/Record.py b/etl/epc/Record.py index 8c060e13..d0816034 100644 --- a/etl/epc/Record.py +++ b/etl/epc/Record.py @@ -760,6 +760,8 @@ class EPCRecord: if self.prepared_epc["built-form"] in DATA_ANOMALY_MATCHES: if self.prepared_epc["property-type"] in ["Flat", "Maisonette"]: self.prepared_epc["built-form"] = "End-Terrace" + else: + self.prepared_epc["built-form"] = "Semi-Detached" def _clean_age_band(self): """