From b974496348effb51019c001e9391c5b5fa240bc2 Mon Sep 17 00:00:00 2001 From: Alireza Adli Date: Mon, 14 Oct 2024 11:11:16 -0400 Subject: [PATCH] describe calculate_emission --- lca_carbon_workflow.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lca_carbon_workflow.py b/lca_carbon_workflow.py index ea3322d..54765f2 100644 --- a/lca_carbon_workflow.py +++ b/lca_carbon_workflow.py @@ -39,6 +39,13 @@ class LCACarbonWorkflow: calculates embodied and end of life carbon emission of each building. It puts out the results of opening and envelop emission for each mentioned cycle separately. + Final results will be stored in the below attributes: + building_envelope_emission + building_opening_emission + building_component_emission + building_envelope_end_of_life_emission + building_opening_end_of_life_emission + building_component_end_of_life_emission :param city_path: Either a path to the buildings (GeoJson) file or the content of such a file. :param archetypes_catalog_file_name: Path to the buildings' @@ -189,6 +196,13 @@ class LCACarbonWorkflow: return opening_emission, opening_end_of_life_emission def calculate_emission(self): + """ + It iterates through the city object and gives each building to the + calculate_building_component_emission() method. Then it unpack the results + of the mentioned method to the (currently six) attributes which hold the + final results. These attributes are mentioned in the constructor method + description. + """ for building in self.city.buildings: envelope_emission, opening_emission, component_emission, \ envelope_end_of_life_emission, \