From d79685123e6c8327ba5033cb80c56bf6194a2047 Mon Sep 17 00:00:00 2001 From: Alireza Adli Date: Fri, 19 Jul 2024 14:08:32 -0400 Subject: [PATCH] Calculate opening emission --- lca_carbon_workflow.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lca_carbon_workflow.py b/lca_carbon_workflow.py index 4d7a101..99c4376 100644 --- a/lca_carbon_workflow.py +++ b/lca_carbon_workflow.py @@ -83,10 +83,12 @@ class LCACarbonWorkflow: opening.area).calculate_opening_emission()) print('\t\t\t', opening_emission) print('opening_emission', opening_emission) - boundary_opening_emission.append(opening_emission) + if opening_emission: + boundary_opening_emission += opening_emission print('boundary_opening_emission', boundary_opening_emission) - surface_opening_emission.append(boundary_opening_emission) - print('surface_opening_emission', surface_opening_emission) + if boundary_opening_emission: + surface_opening_emission += boundary_opening_emission + print('surface_opening_emission', surface_opening_emission, '\n', sum(surface_opening_emission)) def calculate_emission(self): emitted_carbon = []