From dd90e280ca5d9f2cbb1811c9dda8490ec26f01b0 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Sat, 23 Sep 2023 15:06:07 +0100 Subject: [PATCH] added line to remove park homes --- model_data/simulation_system/core/DataProcessor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/model_data/simulation_system/core/DataProcessor.py b/model_data/simulation_system/core/DataProcessor.py index 824fcf99..bf9b473f 100644 --- a/model_data/simulation_system/core/DataProcessor.py +++ b/model_data/simulation_system/core/DataProcessor.py @@ -420,6 +420,11 @@ class DataProcessor: self.data = self.data[~pd.isnull(self.data["HOTWATER_DESCRIPTION"])] self.data = self.data[~pd.isnull(self.data["ROOF_DESCRIPTION"])] + # Because park homes are surveyed unusually (for example, we don't have u-values to + # look up for their different components, they need to be collected in survey and aren't reflected in + # EPCs) we'll ignore them from the model + self.data = self.data[self.data["PROPERTY_TYPE"] != "Park home"] + def clean_multi_glaze_proportion(self) -> None: """ If there is no multi-glaze proportion but the windows are fully glazed, then we should assume a score of 100