Rechanged the Minimal.idf to give the necessary results, without additional stuff not used by the tool

This commit is contained in:
Oriol Gavalda 2024-01-29 11:46:07 -05:00
parent b6d32e5086
commit 6e2e6a0a4d

View File

@ -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)