Add search window

This commit is contained in:
Alireza Adli 2024-07-18 13:47:25 -04:00
parent 346bbf4bdf
commit 0c0736bd9f

View File

@ -102,9 +102,10 @@ class AccessNrcanCatalog:
elif opaque_surface[opaque_surface_key]['type'] == component_type: elif opaque_surface[opaque_surface_key]['type'] == component_type:
return opaque_surface[opaque_surface_key]['layers'] return opaque_surface[opaque_surface_key]['layers']
@staticmethod def search_transparent_surfaces(
def nrcan_windows_skylight(opaque_surface_code): self, surface_type, opaque_surface_code, climate_zone):
return self.constructions['transparent_surfaces'][0][window_code] return self.transparent_surfaces[
f'{surface_type}_{opaque_surface_code}_{climate_zone}']
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.""" """Returns the opaque_surface_name corresponding to the given arguments."""