mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
handling more fuel types
This commit is contained in:
parent
3acad1e049
commit
ab9b0b16f9
2 changed files with 3 additions and 2 deletions
|
|
@ -85,6 +85,7 @@ DESCRIPTIONS_TO_FUEL_TYPES = {
|
|||
"Air source heat pump, Systems with radiators, electric": {"fuel": "Electricity",
|
||||
"cop": AVERAGE_ASHP_EFFICIENCY / 100},
|
||||
"Ground source heat pump, underfloor, electric": {"fuel": "Electricity", "cop": AVERAGE_ASHP_EFFICIENCY / 100},
|
||||
"Electric ceiling heating": {"fuel": "Electricity", "cop": 1},
|
||||
}
|
||||
|
||||
# These are the measure types where if there is a ventilation recommendation, we force the inclusion of it
|
||||
|
|
|
|||
|
|
@ -711,7 +711,7 @@ class Recommendations:
|
|||
"hotwater_cop": 0.9
|
||||
}
|
||||
|
||||
mapped = descriptions_to_fuel_types.get(heating_description, None)
|
||||
mapped = descriptions_to_fuel_types.get(heating_description.strip(), None)
|
||||
if mapped is None:
|
||||
# TODO: This is a non-ideal placeholder but we put something in place for a process that falls over
|
||||
# fairly regularly. A task has been added to planner to refactor this
|
||||
|
|
@ -738,7 +738,7 @@ class Recommendations:
|
|||
"heating_cop": mapped["cop"], "hotwater_cop": 1
|
||||
}
|
||||
|
||||
mapped_hotwater = descriptions_to_fuel_types.get(hotwater_description)
|
||||
mapped_hotwater = descriptions_to_fuel_types.get(hotwater_description.strip())
|
||||
if mapped_hotwater is None:
|
||||
# TODO: This is a non-ideal placeholder but we put something in place for a process that falls over
|
||||
# fairly regularly. A task has been added to planner to refactor this
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue