From 614f5f0c980c826a31f34a87e0e73841c270ea0d Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 8 Oct 2024 10:29:14 +0100 Subject: [PATCH] language updates to heat pump recommendations --- backend/app/assumptions.py | 2 ++ recommendations/HeatingRecommender.py | 22 ++++++++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/backend/app/assumptions.py b/backend/app/assumptions.py index 371b226d..5571e13b 100644 --- a/backend/app/assumptions.py +++ b/backend/app/assumptions.py @@ -10,6 +10,8 @@ SOLAR_CONSUMPTION_PROPORTION = 0.5 # Typically, each solar panel takes up around 3.4 m2 of roof space under RdSAP. This was been verified in Elmhurst RDSAP_AREA_PER_PANEL = 3.4 +SOCIAL_TENURES = ["Rented (social)", "rental (social)"] + DESCRIPTIONS_TO_FUEL_TYPES = { "Air source heat pump, radiators, electric": { "fuel": "Electricity", "cop": AVERAGE_ASHP_EFFICIENCY / 100 diff --git a/recommendations/HeatingRecommender.py b/recommendations/HeatingRecommender.py index bdc73e3b..48063a8e 100644 --- a/recommendations/HeatingRecommender.py +++ b/recommendations/HeatingRecommender.py @@ -1,4 +1,5 @@ import re +import backend.app.assumptions as assumptions from recommendations.Costs import Costs, BOILER_UPGRADE_SCHEME_ASHP_VALUE from recommendations.recommendation_utils import ( check_simulation_difference, override_costs, combine_recommendation_configs @@ -484,11 +485,13 @@ class HeatingRecommender: # This is a map from the heating controls description to the description of the air source heat pump set up ashp_descriptions = { "Time and temperature zone control": ( - "Install an air source heat pump, and upgrade heating controls to Smart Thermostats, " - "room sensors and smart radiator valves (time & temperature zone control)." + f"Install a {ashp_size}KW air source heat pump, and upgrade heating controls to Smart Thermostats, " + "room sensors and smart radiator valves (time & temperature zone control). Ensure you have an 18 or " + "24 hour tariff" ), "Programmer, TRVs and bypass": ( - "Install an air source heat pump, with programmer, TRVs and a Bypass valve." + f"Install a {ashp_size}KW air source heat pump, with programmer, TRVs and a Bypass valve. Ensure you " + "have an 18 or 24 hour tariff" ), } @@ -505,7 +508,7 @@ class HeatingRecommender: ashp_costs_with_controls[key] += controls_rec[key] if controls_rec is None: - description = "Install a Mitsubish air source heat pump." + description = f"Install a {ashp_size}KW Air source heat pump. Ensure you have an 18 or 24 hour tariff" elif already_installed: description = "The property already has an air source heat pump, no further action needed." else: @@ -514,17 +517,16 @@ class HeatingRecommender: # If the property does not have existing cavity and loft insulation, we include a note that the cost # includes the boiler upgrade scheme and that the cavity and loft need to be treated, to ensure access # to the funding - if not non_intrusive_recommendation: + if not non_intrusive_recommendation and self.property.data["tenure"] not in assumptions.SOCIAL_TENURES: if has_cavity_or_loft_recommendations: description = description + ( - f" The cost includes the £" - f"{BOILER_UPGRADE_SCHEME_ASHP_VALUE} boiler upgrade scheme grant. " - f"You must ensure that the property has an insulated cavity and " - f"270mm+ loft insulation to qualify for the grant" + f" You must ensure that the property has an insulated cavity and " + f"270mm+ loft insulation to qualify for the grant, to claim £" + f"{BOILER_UPGRADE_SCHEME_ASHP_VALUE} of funding from the boiler upgrade scheme grant. " ) else: description = description + ( - f" The cost includes the £{BOILER_UPGRADE_SCHEME_ASHP_VALUE} boiler upgrade scheme grant" + f" £{BOILER_UPGRADE_SCHEME_ASHP_VALUE} of funding can be claimed from the boiler upgrade scheme" ) simulation_config = {