mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
change the floor level logic
This commit is contained in:
parent
23b62b0c54
commit
e139031e6b
2 changed files with 4 additions and 2 deletions
|
|
@ -847,8 +847,8 @@ class Property:
|
|||
# where a property is marked as being on the first floor
|
||||
if self.floor_level > 0:
|
||||
|
||||
# We check if there is another property below
|
||||
if not self.floor["another_property_below"]:
|
||||
# We check if there is another property below (for a non-sap assessment)
|
||||
if not self.floor["another_property_below"] and self.floor["thermal_transmittance_unit"] is None:
|
||||
self.floor_level = 0
|
||||
return
|
||||
|
||||
|
|
|
|||
|
|
@ -146,6 +146,8 @@ class Mds:
|
|||
self.property_instance.roof["is_pitched"] and
|
||||
not self.roof_recommender.is_loft_already_insulated()
|
||||
):
|
||||
self.property_instance.data
|
||||
|
||||
pruned_measures.append(measure)
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue