handling recommendation for solar with a new build

This commit is contained in:
Khalim Conn-Kowlessar 2025-05-06 19:21:40 +01:00
parent 5c2296efef
commit ca173c88ca

View file

@ -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"]