diff --git a/hub/exports/building_energy/insel/insel_monthly_energy_balance.py b/hub/exports/building_energy/insel/insel_monthly_energy_balance.py index e6f77068..f14ec946 100644 --- a/hub/exports/building_energy/insel/insel_monthly_energy_balance.py +++ b/hub/exports/building_energy/insel/insel_monthly_energy_balance.py @@ -42,6 +42,14 @@ class InselMonthlyEnergyBalance: self._insel_files_paths.append(building.name + '.insel') file_name_out = building.name + '.out' 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: logging.warning('Building %s has missing values. Monthly Energy Balance cannot be processed', building.name)