mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
debugging heatingsource code
This commit is contained in:
parent
6645218563
commit
3c65d1639a
2 changed files with 3 additions and 3 deletions
|
|
@ -1293,7 +1293,7 @@ class Property:
|
||||||
fuel for key, fuel in heating_fuel_mapping.items() if self.main_heating.get(key, False)
|
fuel for key, fuel in heating_fuel_mapping.items() if self.main_heating.get(key, False)
|
||||||
]
|
]
|
||||||
if len(self.heating_energy_source) == 0 or len(self.heating_energy_source) > 1:
|
if len(self.heating_energy_source) == 0 or len(self.heating_energy_source) > 1:
|
||||||
raise Exception("Investigate em")
|
raise Exception("Investigate me")
|
||||||
|
|
||||||
self.heating_energy_source = self.heating_energy_source[0]
|
self.heating_energy_source = self.heating_energy_source[0]
|
||||||
|
|
||||||
|
|
@ -1301,7 +1301,7 @@ class Property:
|
||||||
self.hot_water_energy_source = heater_type_to_fuel[self.hotwater["heater_type"]]
|
self.hot_water_energy_source = heater_type_to_fuel[self.hotwater["heater_type"]]
|
||||||
else:
|
else:
|
||||||
fuel = system_type_modification[self.hotwater["system_type"]]
|
fuel = system_type_modification[self.hotwater["system_type"]]
|
||||||
if fuel == 'Main System':
|
if fuel in ['Main System', "Community Scheme"]:
|
||||||
self.hot_water_energy_source = self.heating_energy_source
|
self.hot_water_energy_source = self.heating_energy_source
|
||||||
else:
|
else:
|
||||||
raise Exception("Investiage me")
|
raise Exception("Investiage me")
|
||||||
|
|
|
||||||
|
|
@ -452,7 +452,7 @@ async def trigger_plan(body: PlanTriggerRequest):
|
||||||
# We need to prepare the EPC so it's in the same format as the training data
|
# We need to prepare the EPC so it's in the same format as the training data
|
||||||
|
|
||||||
logger.info("Getting spatial data")
|
logger.info("Getting spatial data")
|
||||||
for p in input_properties:
|
for p in tqdm(input_properties):
|
||||||
p.get_components(cleaned=cleaned, energy_consumption_client=energy_consumption_client)
|
p.get_components(cleaned=cleaned, energy_consumption_client=energy_consumption_client)
|
||||||
p.get_spatial_data(uprn_filenames)
|
p.get_spatial_data(uprn_filenames)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue