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 04350b81..126c7083 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 @@ -21,10 +21,12 @@ class AccessNrcanCatalog: self, path, archetypes='nrcan_archetypes.json', constructions='nrcan_constructions_cap_3.json', + materials='nrcan_materials_dictionaries.json', transparent_surfaces='nrcan_transparent_surfaces_dictionaries.json'): self._path = Path(path) self.archetypes = archetypes self.constructions = constructions + self.materials = materials self.transparent_surfaces = transparent_surfaces self.hub_to_nrcan_dictionary = HubFunctionToNrcanConstructionFunction().dictionary @@ -46,6 +48,15 @@ class AccessNrcanCatalog: constructions_path = (self._path / constructions).resolve() self._constructions = json.loads(constructions_path.read_text()) + @property + def materials(self): + return self._materials + + @materials.setter + def materials(self, materials): + materials_path = (self._path / materials).resolve() + self._materials = json.loads(materials_path.read_text()) + @property def transparent_surfaces(self): return self._transparent_surfaces