Edit description and edit indentation

This commit is contained in:
Alireza Adli 2024-08-13 13:12:32 -04:00
parent 8b4f89bbd6
commit dc4a82ce8a
4 changed files with 10 additions and 7 deletions

View File

@ -3,7 +3,7 @@ access_nrcan_catalog module
Returns values from both nrcan_constructions.json and nrcan_archetypes.json
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2024 Concordia CERC group
Code contributors: Alireza Adli alireza.adli@concordia.ca
Project developer: Alireza Adli alireza.adli@concordia.ca
"""
import json
@ -28,7 +28,8 @@ class AccessNrcanCatalog:
self.constructions = constructions
self.materials = materials
self.transparent_surfaces = transparent_surfaces
self.hub_to_nrcan_dictionary = HubFunctionToNrcanConstructionFunction().dictionary
self.hub_to_nrcan_dictionary = \
HubFunctionToNrcanConstructionFunction().dictionary
@property
def archetypes(self):
@ -121,7 +122,8 @@ class AccessNrcanCatalog:
return self.transparent_surfaces[
f'{surface_type}_{opaque_surface_code}']
def find_opaque_surface(self, function, period_of_construction, climate_zone):
def find_opaque_surface(
self, function, period_of_construction, climate_zone):
"""Returns the opaque_surface_name corresponding to the given arguments."""
for archetype in self.archetypes['archetypes']:
if archetype['function'] != function:
@ -131,4 +133,5 @@ class AccessNrcanCatalog:
elif archetype['climate_zone'] != climate_zone:
continue
else:
return archetype['constructions']['OutdoorsWall']['opaque_surface_name']
return \
archetype['constructions']['OutdoorsWall']['opaque_surface_name']

View File

@ -4,7 +4,7 @@ Returns the summarize of emission of energy systems material.
The returned value will be used to calculate the building component emission.
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2024 Concordia CERC group
Code contributors: Alireza Adli alireza.adli@concordia.ca
Project developers: Alireza Adli alireza.adli@concordia.ca
Mohammad Reza Seyedabadi mohammad.seyedabadi@mail.concordia.ca
"""

View File

@ -4,7 +4,7 @@ Returns the summarize of envelope's surfaces emissions
The returned value will be used to calculate the building component emission.
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2024 Concordia CERC group
Code contributors: Alireza Adli alireza.adli@concordia.ca
Project developers: Alireza Adli alireza.adli@concordia.ca
Mohammad Reza Seyedabadi mohammad.seyedabadi@mail.concordia.ca
"""

View File

@ -4,7 +4,7 @@ Returns the summarize of all surfaces openings' emissions
The returned value will be used to calculate the building component emission.
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2024 Concordia CERC group
Code contributors: Alireza Adli alireza.adli@concordia.ca
Project developers: Alireza Adli alireza.adli@concordia.ca
Mohammad Reza Seyedabadi mohammad.seyedabadi@mail.concordia.ca
"""