Bug correction in meb
Now it skip the building when the archetype it's not available
This commit is contained in:
parent
ff1bb80a6c
commit
58e7ce7574
|
@ -42,6 +42,14 @@ class InselMonthlyEnergyBalance:
|
||||||
self._insel_files_paths.append(building.name + '.insel')
|
self._insel_files_paths.append(building.name + '.insel')
|
||||||
file_name_out = building.name + '.out'
|
file_name_out = building.name + '.out'
|
||||||
output_path = Path(self._path / file_name_out).resolve()
|
output_path = Path(self._path / file_name_out).resolve()
|
||||||
|
skip_building = False
|
||||||
|
for internal_zone in building.internal_zones:
|
||||||
|
if internal_zone.thermal_archetype is None:
|
||||||
|
logging.warning('Building %s has missing values. Monthly Energy Balance cannot be processed', building.name)
|
||||||
|
skip_building = True
|
||||||
|
break
|
||||||
|
if skip_building:
|
||||||
|
continue
|
||||||
if building.thermal_zones_from_internal_zones is None:
|
if building.thermal_zones_from_internal_zones is None:
|
||||||
logging.warning('Building %s has missing values. Monthly Energy Balance cannot be processed', building.name)
|
logging.warning('Building %s has missing values. Monthly Energy Balance cannot be processed', building.name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user