Skip buildings that doesn't have internal zone in the MEB export

This commit is contained in:
Guille Gutierrez 2023-02-24 16:02:34 -05:00
parent 34172055a6
commit 3d883fc068

View File

@ -20,7 +20,7 @@ _CONSTRUCTION_CODE = {
cte.GROUND_WALL: '6',
cte.ATTIC_FLOOR: '7',
cte.INTERIOR_SLAB: '8'
}
}
class InselMonthlyEnergyBalance(Insel):
@ -35,8 +35,10 @@ class InselMonthlyEnergyBalance(Insel):
self._insel_files_paths.append(building.name + '.insel')
file_name_out = building.name + '.out'
output_path = Path(self._path / file_name_out).resolve()
self._contents.append(self.generate_meb_template(building, output_path, self._radiation_calculation_method,
self._weather_format))
if building.internal_zones is not None:
self._contents.append(
self.generate_meb_template(building, output_path, self._radiation_calculation_method,self._weather_format)
)
self._export()
def _export(self):