From ca173c88caa93654a47a77fde1009e0ab2d9f27b Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 6 May 2025 19:21:40 +0100 Subject: [PATCH] handling recommendation for solar with a new build --- backend/Property.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/Property.py b/backend/Property.py index 52e8c213..91c1265a 100644 --- a/backend/Property.py +++ b/backend/Property.py @@ -1261,6 +1261,11 @@ class Property: # may be installed such that they are not visible from the street return False + if (self.data["property-type"] in ["House", "Bungalow"]) and ( + not pd.isnull(self.roof["thermal_transmittance"]) + ): + return True + is_valid_property_type = self.data["property-type"] in ["House", "Bungalow", "Maisonette"] is_valid_roof_type = ( self.roof["is_flat"] or self.roof["is_pitched"] or self.roof["is_roof_room"]