mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
handling recommendation for solar with a new build
This commit is contained in:
parent
5c2296efef
commit
ca173c88ca
1 changed files with 5 additions and 0 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue