diff --git a/backend/app/assumptions.py b/backend/app/assumptions.py index 37d9164e..0a7daf22 100644 --- a/backend/app/assumptions.py +++ b/backend/app/assumptions.py @@ -79,6 +79,7 @@ DESCRIPTIONS_TO_FUEL_TYPES = { "fuel": "Electricity", "cop": AVERAGE_ASHP_EFFICIENCY / 100 }, "Electric heat pump for water heating only": {"fuel": "Electricity", "cop": 1}, + "Ground source heat pump, warm air, electric": {"fueld": "Electricity", "cop": AVERAGE_ASHP_EFFICIENCY / 100}, } # These are the measure types where if there is a ventilation recommendation, we force the inclusion of it diff --git a/recommendations/Recommendations.py b/recommendations/Recommendations.py index fa8fe256..4bdcd739 100644 --- a/recommendations/Recommendations.py +++ b/recommendations/Recommendations.py @@ -688,7 +688,11 @@ class Recommendations: } raise NotImplementedError("Handle this case") - mapped = descriptions_to_fuel_types[heating_description] + mapped = descriptions_to_fuel_types.get(heating_description, 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 + mapped = {"fuel": 'Unmapped', "cop": 0.9} heating_fuel = mapped["fuel"] if hotwater_description in [