From 6e2e6a0a4d5c1d7b6e200836e554cf5e66d3c229 Mon Sep 17 00:00:00 2001 From: jgavalda Date: Mon, 29 Jan 2024 11:46:07 -0500 Subject: [PATCH] Rechanged the Minimal.idf to give the necessary results, without additional stuff not used by the tool --- scripts/ep_workflow.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/ep_workflow.py b/scripts/ep_workflow.py index 37e54eec..92a00958 100644 --- a/scripts/ep_workflow.py +++ b/scripts/ep_workflow.py @@ -15,7 +15,7 @@ from hub.imports.results_factory import ResultFactory sys.path.append('./') try: - file_path = (Path(__file__).parent.parent / 'input_files' / 'Citylayers_neighbours_simp2.json') + file_path = (Path(__file__).parent.parent / 'input_files' / 'eilat.geojson') out_path = (Path(__file__).parent.parent / 'out_files') files = glob.glob(f'{out_path}/*') @@ -29,11 +29,11 @@ try: height_field='heightmax', year_of_construction_field='ANNEE_CONS', function_field='CODE_UTILI', - function_to_hub=Dictionaries().montreal_function_to_hub_function).city + function_to_hub=Dictionaries().eilat_function_to_hub_function).city print(f'city created from {file_path}') - ConstructionFactory('nrcan', city).enrich() + ConstructionFactory('eilat', city).enrich() print('enrich constructions... done') - UsageFactory('nrcan', city).enrich() + UsageFactory('eilat', city).enrich() print('enrich usage... done') WeatherFactory('epw', city).enrich() print('enrich weather... done') @@ -54,7 +54,7 @@ try: eso_file = str((out_path / f'{city.name}_out.eso').resolve()) idf_file = str((out_path / f'{city.name}.idf').resolve()) obj_file = str((out_path / f'{city.name}.obj').resolve()) - ResultFactory('energy_plus_multiple_buildings', city, out_path).enrich() + #ResultFactory('energy_plus_multiple_buildings', city, out_path).enrich() except Exception as ex: print(ex)