mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
debugging epc cleaner
This commit is contained in:
parent
0b75b7214f
commit
43afeddb8e
4 changed files with 18 additions and 2 deletions
|
|
@ -14,7 +14,8 @@ class FloorAttributes(Definitions):
|
|||
|
||||
WELSH_TEXT = {
|
||||
"(anheddiad arall islaw)": "(another dwelling below)",
|
||||
"solet, dim inswleiddio (rhagdybiaeth)": "dolid, no insulation (assumed)"
|
||||
"solet, dim inswleiddio (rhagdybiaeth)": "solid, no insulation (assumed)",
|
||||
"crog, dim inswleiddio (rhagdybiaeth)": "suspended, no insulation (assumed)",
|
||||
}
|
||||
|
||||
def __init__(self, description: str):
|
||||
|
|
|
|||
|
|
@ -67,10 +67,20 @@ class MainheatControlAttributes(Definitions):
|
|||
'at least two room thermostats'
|
||||
]
|
||||
|
||||
# Sufficiently similar descriptions to be remapped
|
||||
TO_REMAP = {
|
||||
"celect control": 'celect-type control'
|
||||
}
|
||||
|
||||
def __init__(self, description: str):
|
||||
self.description: str = clean_description(description.lower())
|
||||
self.nodata = not description or description in self.DATA_ANOMALY_MATCHES
|
||||
|
||||
# Remap
|
||||
remapped = self.TO_REMAP.get(self.description)
|
||||
if remapped:
|
||||
self.description = remapped
|
||||
|
||||
if not self.nodata:
|
||||
if not any(
|
||||
self._keyword_in_description(keywords)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@ class RoofAttributes(Definitions):
|
|||
|
||||
WELSH_TEXT = {
|
||||
"ar oleddf, dim inswleiddio": "pitched, no insulation",
|
||||
"ar oleddf, 150 mm o inswleiddio yn y llofft": "pitched, 150 mm loft insulation"
|
||||
"ar oleddf, 150 mm o inswleiddio yn y llofft": "pitched, 150 mm loft insulation",
|
||||
"ar oleddf, 300 mm o inswleiddio yn y llofft": "pitched, 300 mm loft insulation"
|
||||
}
|
||||
|
||||
def __init__(self, description: str):
|
||||
|
|
|
|||
|
|
@ -127,6 +127,10 @@ mainheat_control_cases = [
|
|||
{'original_description': 'Celect-type controls', 'thermostatic_control': 'celect-type control',
|
||||
'charging_system': None, 'switch_system': None, 'no_control': None,
|
||||
'dhw_control': None, 'community_heating': None, 'multiple_room_thermostats': False, 'auxiliary_systems': None,
|
||||
'trvs': None},
|
||||
{'original_description': 'Celect controls', 'thermostatic_control': 'celect-type control', 'charging_system': None,
|
||||
'switch_system': None, 'no_control': None,
|
||||
'dhw_control': None, 'community_heating': None, 'multiple_room_thermostats': False, 'auxiliary_systems': None,
|
||||
'trvs': None}
|
||||
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue