Correct the building_opening_emission assignment indentation

This commit is contained in:
Alireza Adli 2024-07-20 10:57:16 -04:00
parent 814a110904
commit ee74981e7e

View File

@ -69,9 +69,7 @@ class LCACarbonWorkflow:
if boundary.window_ratio == 0:
opening_surface = 0
opening_material_emission = 0
# print('window = 0')
else:
print('window != 0')
opening_emission = self._calculate_opening_emission(
building, surface, boundary, opaque_surface_code)
if opening_emission:
@ -80,7 +78,7 @@ class LCACarbonWorkflow:
if boundary_opening_emission:
surface_opening_emission += boundary_opening_emission
building_opening_emission = sum(surface_opening_emission)
print(building_opening_emission)
# print(building_opening_emission)
def _calculate_opening_emission(
self, building, surface, boundary, opaque_surface_code):
@ -97,7 +95,5 @@ class LCACarbonWorkflow:
return opening_emission
def calculate_emission(self):
emitted_carbon = []
opening_emission = []
for building in self.city.buildings:
self.calculate_building_component_emission(building)