diff --git a/backend/app/assumptions.py b/backend/app/assumptions.py index 924bd2a0..bc8f9cc6 100644 --- a/backend/app/assumptions.py +++ b/backend/app/assumptions.py @@ -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 diff --git a/recommendations/Recommendations.py b/recommendations/Recommendations.py index bcb697fc..20f0c760 100644 --- a/recommendations/Recommendations.py +++ b/recommendations/Recommendations.py @@ -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