mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
added floor insulation to override
This commit is contained in:
parent
fadff714d2
commit
493db6c4a0
1 changed files with 11 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ from datatypes.enums import QuantityUnits
|
|||
from backend.Property import Property
|
||||
from recommendations.recommendation_utils import (
|
||||
r_value_per_mm_to_u_value, calculate_u_value_uplift, is_diminishing_returns, update_lowest_selected_u_value,
|
||||
get_recommended_part, get_floor_u_value
|
||||
get_recommended_part, get_floor_u_value, override_costs
|
||||
)
|
||||
from recommendations.Costs import Costs
|
||||
|
||||
|
|
@ -192,12 +192,22 @@ class FloorRecommendations(Definitions):
|
|||
material=material.to_dict(),
|
||||
non_insulation_materials=non_insulation_materials
|
||||
)
|
||||
|
||||
is_override = "suspended_floor_insulation" in self.property.override
|
||||
if is_override:
|
||||
cost_result = override_costs(cost_result)
|
||||
|
||||
elif material["type"] == "solid_floor_insulation":
|
||||
cost_result = self.costs.solid_floor_insulation(
|
||||
insulation_floor_area=self.property.insulation_floor_area,
|
||||
material=material.to_dict(),
|
||||
non_insulation_materials=non_insulation_materials
|
||||
)
|
||||
|
||||
is_override = "solid_floor_insulation" in self.property.override
|
||||
if is_override:
|
||||
cost_result = override_costs(cost_result)
|
||||
|
||||
else:
|
||||
raise NotImplementedError("Implement me!")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue