mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
added correct incrementing of phase
This commit is contained in:
parent
9130ad55ff
commit
a9c2bf1b9c
2 changed files with 11 additions and 1 deletions
|
|
@ -161,6 +161,7 @@ class HeatingControlRecommender:
|
|||
|
||||
self.recommendation.append(
|
||||
{
|
||||
"type": "heating_control",
|
||||
"description": "upgrade heating controls to Room thermostat, programmer and TRVs",
|
||||
**self.costs.roomstat_programmer_trvs(
|
||||
number_heated_rooms=int(self.property.data["number-heated-rooms"]),
|
||||
|
|
@ -168,6 +169,9 @@ class HeatingControlRecommender:
|
|||
has_room_thermostat=has_room_thermostat,
|
||||
has_trvs=has_trvs
|
||||
),
|
||||
"starting_u_value": None,
|
||||
"new_u_value": None,
|
||||
"sap_points": None,
|
||||
"simulation_config": simulation_config
|
||||
}
|
||||
)
|
||||
|
|
@ -208,10 +212,14 @@ class HeatingControlRecommender:
|
|||
|
||||
self.recommendation.append(
|
||||
{
|
||||
"type": "heating_control",
|
||||
"description": "upgrade heating controls to Room thermostat, programmer and TRVs",
|
||||
**self.costs.time_and_temperature_zone_control(
|
||||
number_heated_rooms=int(self.property.data["number-heated-rooms"])
|
||||
),
|
||||
"starting_u_value": None,
|
||||
"new_u_value": None,
|
||||
"sap_points": None,
|
||||
"simulation_config": simulation_config
|
||||
}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -113,7 +113,9 @@ class Recommendations:
|
|||
# We check if we have distinct heating and heating controls recommendations
|
||||
# If so, we increment by 2 (one of the heating system, one for the heating controls)
|
||||
# otherwise we incremenet by 1
|
||||
phase += 1
|
||||
max_used_phase = max([rec["phase"] for rec in self.heating_recommender.recommendations])
|
||||
amount_to_increment = max_used_phase - phase + 1
|
||||
phase += amount_to_increment
|
||||
|
||||
# Hot water
|
||||
if "hot_water" not in self.exclusions:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue