From ee74981e7e56e945d1c783de645b4bb26e04ae2e Mon Sep 17 00:00:00 2001 From: Alireza Adli Date: Sat, 20 Jul 2024 10:57:16 -0400 Subject: [PATCH] Correct the building_opening_emission assignment indentation --- lca_carbon_workflow.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lca_carbon_workflow.py b/lca_carbon_workflow.py index 35926a6..e5e2e80 100644 --- a/lca_carbon_workflow.py +++ b/lca_carbon_workflow.py @@ -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: @@ -79,8 +77,8 @@ class LCACarbonWorkflow: print('boundary_opening_emission', boundary_opening_emission) if boundary_opening_emission: surface_opening_emission += boundary_opening_emission - building_opening_emission = sum(surface_opening_emission) - print(building_opening_emission) + building_opening_emission = sum(surface_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)