mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Added ashp to mds
This commit is contained in:
parent
8d6085be0f
commit
1db6509e36
2 changed files with 8 additions and 3 deletions
|
|
@ -103,7 +103,7 @@ class HeatingRecommender:
|
|||
|
||||
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 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
|
||||
}
|
||||
|
||||
if _return:
|
||||
return [ashp_recommendation]
|
||||
self.heating_recommendations.append(ashp_recommendation)
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -89,8 +89,11 @@ class Mds:
|
|||
self.floor_recommender.recommend(phase=0)
|
||||
|
||||
if "air_source_heat_pump" in measure_config_list:
|
||||
raise Exception("check me out 7")
|
||||
self.heating_recommender.recommend(phase=0)
|
||||
recs = self.heating_recommender.recommend_air_source_heat_pump(
|
||||
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:
|
||||
recs = self.heating_recommender.recommend_hhr_storage_heaters(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue