From 419c74e1e445afefad78e587a1a4cdbb19d45dd2 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 19 Feb 2024 19:53:20 +0000 Subject: [PATCH] Fixed storage heaters recommendations --- recommendations/HeatingRecommender.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/recommendations/HeatingRecommender.py b/recommendations/HeatingRecommender.py index fa070518..ab7c76eb 100644 --- a/recommendations/HeatingRecommender.py +++ b/recommendations/HeatingRecommender.py @@ -61,6 +61,7 @@ class HeatingRecommender: for controls_switch in heating_controls_switch: total_costs = costs.copy() recommendation_simulation_config = heating_simulation_config.copy() + recommendation_description = description if controls_switch: # We add the costs of the heating controls, onto each key in the costs dictionary for key in total_costs: @@ -71,7 +72,7 @@ class HeatingRecommender: **controls_recommendations[0]["simulation_config"] } - description = f"{description} and {controls_recommendations[0]['description']}" + recommendation_description = f"{description} and {controls_recommendations[0]['description']}" recommendation = { "phase": phase, @@ -79,7 +80,7 @@ class HeatingRecommender: # TODO ], "type": "heating", - "description": description, + "description": recommendation_description, "starting_u_value": None, "new_u_value": None, "sap_points": None, @@ -140,6 +141,7 @@ class HeatingRecommender: ) # This upgrade will only take the heating system to average energy efficiency heating_simulation_config["mainheatc_energy_eff_ending"] = "Good" + heating_simulation_config["mainheat_energy_eff_ending"] = "Average" # Upgrade to electric storage heaters costs = self.costs.electric_storage_heaters( @@ -187,7 +189,7 @@ class HeatingRecommender: costs = self.costs.electric_room_heaters( number_heated_rooms=self.property.data["number-heated-rooms"] ) - description = "Upgrade electric room heaters to more electric radiators" + description = "Upgrade electric room heaters to more efficient electric radiators" heating_simulation_config = {"mainheat_energy_eff_ending": "Average"} recommendations = self.combine_heating_and_controls(