mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
need to calculate property default savings
This commit is contained in:
parent
2efb2a4f3e
commit
f985f2b11c
1 changed files with 8 additions and 2 deletions
|
|
@ -881,8 +881,6 @@ async def trigger_plan(body: PlanTriggerRequest):
|
|||
rec["kwh_savings"] = total_kwh_savings
|
||||
rec["energy_cost_savings"] = energy_cost_savings
|
||||
|
||||
# TODO: Given the default recommendations, calcualte a total kwh and cost saving for the property!!!
|
||||
|
||||
# Insert the predictions into the recommendations and run the optimiser
|
||||
# TODO: If a recommendation has a negative impact on SAP, we should remove it - this seems to have become a
|
||||
# possibility with heating system
|
||||
|
|
@ -944,6 +942,14 @@ async def trigger_plan(body: PlanTriggerRequest):
|
|||
]
|
||||
recommendations[p.id] = final_recommendations
|
||||
|
||||
# # TODO: Given the default recommendations, calcualte a total kwh and cost saving for the property!!!
|
||||
# default_savings = [
|
||||
# {
|
||||
# "kwh_savings": rec["kwh_savings"],
|
||||
# "energy_cost_savings": rec["energy_cost_savings"]
|
||||
# } for recs in property_recommendations for rec in recs if rec["default"]
|
||||
# ]
|
||||
|
||||
# 1) the property data
|
||||
# 2) the property details (epc)
|
||||
# 3) the recommendations
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue