mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
incorporate heating and heating control recommendations
This commit is contained in:
parent
45552f5e06
commit
09bbeaecae
1 changed files with 12 additions and 5 deletions
|
|
@ -233,6 +233,8 @@ class HeatingRecommender:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
recommendation_phase = phase
|
||||||
|
|
||||||
# We now recommend boiler upgrades, if applicable
|
# We now recommend boiler upgrades, if applicable
|
||||||
if self.property.data["mainheat-energy-eff"] in ["Very Poor", "Poor", "Average"]:
|
if self.property.data["mainheat-energy-eff"] in ["Very Poor", "Poor", "Average"]:
|
||||||
boiler_size = self.estimate_boiler_size(
|
boiler_size = self.estimate_boiler_size(
|
||||||
|
|
@ -252,7 +254,7 @@ class HeatingRecommender:
|
||||||
|
|
||||||
self.recommendations.append(
|
self.recommendations.append(
|
||||||
{
|
{
|
||||||
"phase": phase,
|
"phase": recommendation_phase,
|
||||||
"parts": [
|
"parts": [
|
||||||
# TODO
|
# TODO
|
||||||
],
|
],
|
||||||
|
|
@ -261,16 +263,21 @@ class HeatingRecommender:
|
||||||
"starting_u_value": None,
|
"starting_u_value": None,
|
||||||
"new_u_value": None,
|
"new_u_value": None,
|
||||||
"sap_points": None,
|
"sap_points": None,
|
||||||
|
"simulation_config": {"mainheat_energy_eff_ending": "Good"},
|
||||||
**self.costs.low_carbon_boiler(is_combi=is_combi, size=f"{boiler_size}kw")
|
**self.costs.low_carbon_boiler(is_combi=is_combi, size=f"{boiler_size}kw")
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# We increment the recommendation phase, in the case of us having heating control recommendations
|
||||||
|
recommendation_phase += 1
|
||||||
|
|
||||||
# We recommend the heating controls
|
# We recommend the heating controls
|
||||||
controls_recommender = HeatingControlRecommender(self.property)
|
controls_recommender = HeatingControlRecommender(self.property)
|
||||||
controls_recommender.recommend(heating_description="Boiler and radiators, mains gas")
|
controls_recommender.recommend(heating_description="Boiler and radiators, mains gas")
|
||||||
# We may have 2 recommendations from the heating controls
|
# We may have 2 recommendations from the heating controls
|
||||||
|
|
||||||
# The heating controls recommendation is distrinct from the boiler upgrade recommendation
|
if controls_recommender.recommendation:
|
||||||
# We insert phase into the recommendations for heating controls
|
# The heating controls recommendation is distrinct from the boiler upgrade recommendation
|
||||||
for recommendation in controls_recommender.recommendation:
|
# We insert phase into the recommendations for heating controls
|
||||||
recommendation["phase"] = phase
|
for recommendation in controls_recommender.recommendation:
|
||||||
|
recommendation["phase"] = recommendation_phase
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue