Correct the building_opening_emission assignment indentation
This commit is contained in:
parent
814a110904
commit
ee74981e7e
|
@ -69,9 +69,7 @@ class LCACarbonWorkflow:
|
||||||
if boundary.window_ratio == 0:
|
if boundary.window_ratio == 0:
|
||||||
opening_surface = 0
|
opening_surface = 0
|
||||||
opening_material_emission = 0
|
opening_material_emission = 0
|
||||||
# print('window = 0')
|
|
||||||
else:
|
else:
|
||||||
print('window != 0')
|
|
||||||
opening_emission = self._calculate_opening_emission(
|
opening_emission = self._calculate_opening_emission(
|
||||||
building, surface, boundary, opaque_surface_code)
|
building, surface, boundary, opaque_surface_code)
|
||||||
if opening_emission:
|
if opening_emission:
|
||||||
|
@ -79,8 +77,8 @@ class LCACarbonWorkflow:
|
||||||
print('boundary_opening_emission', boundary_opening_emission)
|
print('boundary_opening_emission', boundary_opening_emission)
|
||||||
if boundary_opening_emission:
|
if boundary_opening_emission:
|
||||||
surface_opening_emission += boundary_opening_emission
|
surface_opening_emission += boundary_opening_emission
|
||||||
building_opening_emission = sum(surface_opening_emission)
|
building_opening_emission = sum(surface_opening_emission)
|
||||||
print(building_opening_emission)
|
# print(building_opening_emission)
|
||||||
|
|
||||||
def _calculate_opening_emission(
|
def _calculate_opening_emission(
|
||||||
self, building, surface, boundary, opaque_surface_code):
|
self, building, surface, boundary, opaque_surface_code):
|
||||||
|
@ -97,7 +95,5 @@ class LCACarbonWorkflow:
|
||||||
return opening_emission
|
return opening_emission
|
||||||
|
|
||||||
def calculate_emission(self):
|
def calculate_emission(self):
|
||||||
emitted_carbon = []
|
|
||||||
opening_emission = []
|
|
||||||
for building in self.city.buildings:
|
for building in self.city.buildings:
|
||||||
self.calculate_building_component_emission(building)
|
self.calculate_building_component_emission(building)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user