From 0c0736bd9f292a753c54a1a9fc35f995c874469c Mon Sep 17 00:00:00 2001 From: Alireza Adli Date: Thu, 18 Jul 2024 13:47:25 -0400 Subject: [PATCH] Add search window --- .../life_cycle_assessment/access_nrcan_catalogue.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 0fc76705..a04c2fd2 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 @@ -102,9 +102,10 @@ class AccessNrcanCatalog: elif opaque_surface[opaque_surface_key]['type'] == component_type: return opaque_surface[opaque_surface_key]['layers'] - @staticmethod - def nrcan_windows_skylight(opaque_surface_code): - return self.constructions['transparent_surfaces'][0][window_code] + def search_transparent_surfaces( + self, surface_type, opaque_surface_code, climate_zone): + return self.transparent_surfaces[ + f'{surface_type}_{opaque_surface_code}_{climate_zone}'] def find_opaque_surface(self, function, period_of_construction, climate_zone): """Returns the opaque_surface_name corresponding to the given arguments."""