Utilize the input_geojson_content

This commit is contained in:
Alireza Adli 2024-10-09 15:59:38 -04:00
parent ae8885aede
commit 1beadca2b9

View File

@ -9,6 +9,8 @@ Mohammad Reza Seyedabadi mohammad.seyedabadi@mail.concordia.ca
from pathlib import Path
from input_geojson_content import InputGeoJsonContent
from hub.imports.geometry_factory import GeometryFactory
from hub.imports.construction_factory import ConstructionFactory
from hub.helpers.dictionaries import Dictionaries
@ -31,8 +33,9 @@ class LCACarbonWorkflow:
constructions_catalog_file,
catalog='nrcan',
building_parameters=('height', 'year_of_construction', 'function')):
self.file_path = (Path(__file__).parent / 'input_files' / city_path)
self.catalogs_path = (Path(__file__).parent / 'input_files')
self.file_path = Path(__file__).parent / 'input_files' / \
InputGeoJsonContent(city_path).content
self.catalogs_path = Path(__file__).parent / 'input_files'
self.archetypes_catalog_file_name = archetypes_catalog_file_name
self.constructions_catalog_file = constructions_catalog_file
self.nrcan_catalogs = AccessNrcanCatalog(