From 9bc9ff25fc9329ef8d73ea939111eb087a1f73d0 Mon Sep 17 00:00:00 2001 From: Alireza Adli Date: Sat, 20 Jul 2024 12:13:33 -0400 Subject: [PATCH] Add search material to the access/rename to calculate_envelope_emission --- .../life_cycle_assessment/access_nrcan_catalogue.py | 3 +++ .../life_cycle_assessment/envelope_emission.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hub/city_model_structure/life_cycle_assessment/access_nrcan_catalogue.py b/hub/city_model_structure/life_cycle_assessment/access_nrcan_catalogue.py index 126c7083..d17162ce 100644 --- a/hub/city_model_structure/life_cycle_assessment/access_nrcan_catalogue.py +++ b/hub/city_model_structure/life_cycle_assessment/access_nrcan_catalogue.py @@ -113,6 +113,9 @@ class AccessNrcanCatalog: elif opaque_surface[opaque_surface_key]['type'] == component_type: return opaque_surface[opaque_surface_key]['layers'] + def search_materials(self, material_name): + return self.materials[f'{material_name}'] + def search_transparent_surfaces( self, surface_type, opaque_surface_code): return self.transparent_surfaces[ diff --git a/hub/city_model_structure/life_cycle_assessment/envelope_emission.py b/hub/city_model_structure/life_cycle_assessment/envelope_emission.py index 511201e2..c736da8f 100644 --- a/hub/city_model_structure/life_cycle_assessment/envelope_emission.py +++ b/hub/city_model_structure/life_cycle_assessment/envelope_emission.py @@ -28,7 +28,7 @@ class EnvelopeEmission: def envelope_surface(self): return self._envelope_surface - def envelope_emission(self): + def calculate_envelope_emission(self): return self._envelope_material_emission * \ self.envelope_thickness * \ self._envelope_surface