diff --git a/lca_carbon_workflow.py b/lca_carbon_workflow.py index 54765f2..c208e87 100644 --- a/lca_carbon_workflow.py +++ b/lca_carbon_workflow.py @@ -40,12 +40,12 @@ class LCACarbonWorkflow: 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 + 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' @@ -169,10 +169,25 @@ class LCACarbonWorkflow: self, building, surface, boundary, opaque_surface_code, density=2579): - """Windows have the assumed density of 2579 kg/m3 - Window's thickness assumed the same as wall's thickness - These two values are being used to calculate window's workload - for End of Life emission evaluation.""" + """ + This calculates the opening emission based on the mentioned parameters. + The arguments come from the calculate_building_component_emission() + method and the output is used in the same method. So the current method + is hidden to the user. + Windows have the assumed density of 2579 kg/m3 + Window's thickness assumed the same as wall's thickness + These two values are being used to calculate window's workload + for End of Life emission evaluation. + :param building: + :param surface: + :param boundary: + :param opaque_surface_code: + :param density: + :return: + """ opening_emission = [] opening_end_of_life_emission = [] for opening in boundary.thermal_openings: @@ -197,11 +212,11 @@ class LCACarbonWorkflow: 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. + 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, \