mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
commit
ec6804ee81
2 changed files with 6 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ DESCRIPTIONS_TO_FUEL_TYPES = {
|
||||||
"fuel": "Electricity", "cop": AVERAGE_ASHP_EFFICIENCY / 100
|
"fuel": "Electricity", "cop": AVERAGE_ASHP_EFFICIENCY / 100
|
||||||
},
|
},
|
||||||
"Electric heat pump for water heating only": {"fuel": "Electricity", "cop": 1},
|
"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},
|
"Ground source heat pump, warm air, electric": {"fuel": "Electricity", "cop": AVERAGE_ASHP_EFFICIENCY / 100},
|
||||||
}
|
}
|
||||||
|
|
||||||
# These are the measure types where if there is a ventilation recommendation, we force the inclusion of it
|
# These are the measure types where if there is a ventilation recommendation, we force the inclusion of it
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,12 @@ from backend.ml_models.AnnualBillSavings import AnnualBillSavings
|
||||||
from backend.apis.GoogleSolarApi import GoogleSolarApi
|
from backend.apis.GoogleSolarApi import GoogleSolarApi
|
||||||
import backend.app.assumptions as assumptions
|
import backend.app.assumptions as assumptions
|
||||||
from backend.app.plan.schemas import SPECIFIC_MEASURES, MEASURE_MAP, NON_INVASIVE_SPECIFIC_MEASURES
|
from backend.app.plan.schemas import SPECIFIC_MEASURES, MEASURE_MAP, NON_INVASIVE_SPECIFIC_MEASURES
|
||||||
|
from utils.logger import setup_logger
|
||||||
|
|
||||||
STARTING_DUMMY_ID_VALUE = -9999
|
STARTING_DUMMY_ID_VALUE = -9999
|
||||||
|
|
||||||
|
logger = setup_logger()
|
||||||
|
|
||||||
|
|
||||||
class Recommendations:
|
class Recommendations:
|
||||||
"""
|
"""
|
||||||
|
|
@ -692,7 +695,9 @@ class Recommendations:
|
||||||
if mapped is None:
|
if mapped is None:
|
||||||
# TODO: This is a non-ideal placeholder but we put something in place for a process that falls over
|
# 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
|
# fairly regularly. A task has been added to planner to refactor this
|
||||||
|
logger.warning("Heating description not mapped: %s", heating_description)
|
||||||
mapped = {"fuel": 'Unmapped', "cop": 0.9}
|
mapped = {"fuel": 'Unmapped', "cop": 0.9}
|
||||||
|
|
||||||
heating_fuel = mapped["fuel"]
|
heating_fuel = mapped["fuel"]
|
||||||
|
|
||||||
if hotwater_description in [
|
if hotwater_description in [
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue