describe calculate_emission

This commit is contained in:
Alireza Adli 2024-10-14 11:11:16 -04:00
parent 5b8ddc742a
commit b974496348

View File

@ -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, \