Skip buildings that doesn't have internal zone in the MEB export
This commit is contained in:
parent
34172055a6
commit
3d883fc068
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user