Added ashp to mds

This commit is contained in:
Khalim Conn-Kowlessar 2024-05-21 11:55:50 +01:00
parent 8d6085be0f
commit 1db6509e36
2 changed files with 8 additions and 3 deletions

View file

@ -103,7 +103,7 @@ class HeatingRecommender:
return return
def recommend_air_source_heat_pump(self, phase, has_cavity_or_loft_recommendations): def recommend_air_source_heat_pump(self, phase, has_cavity_or_loft_recommendations, _return=False):
""" """
This method will implement the recommendation for an air source heat pump This method will implement the recommendation for an air source heat pump
This is ultimately an overhaul to the heating system and so is recommended as an alternative to other This is ultimately an overhaul to the heating system and so is recommended as an alternative to other
@ -200,6 +200,8 @@ class HeatingRecommender:
**ashp_costs **ashp_costs
} }
if _return:
return [ashp_recommendation]
self.heating_recommendations.append(ashp_recommendation) self.heating_recommendations.append(ashp_recommendation)
@staticmethod @staticmethod

View file

@ -89,8 +89,11 @@ class Mds:
self.floor_recommender.recommend(phase=0) self.floor_recommender.recommend(phase=0)
if "air_source_heat_pump" in measure_config_list: if "air_source_heat_pump" in measure_config_list:
raise Exception("check me out 7") recs = self.heating_recommender.recommend_air_source_heat_pump(
self.heating_recommender.recommend(phase=0) phase=0, has_cavity_or_loft_recommendations=False, _return=True
)
recs = self.insert_recommendation_id(recs, measures, "air_source_heat_pump")
mds_recommendations.append(recs)
if "electric_storage_heaters" in measure_config_list: if "electric_storage_heaters" in measure_config_list:
recs = self.heating_recommender.recommend_hhr_storage_heaters( recs = self.heating_recommender.recommend_hhr_storage_heaters(