From bd82d0cd1f91935ec901dac994386bfa677a723a Mon Sep 17 00:00:00 2001 From: p_monsalvete Date: Tue, 6 Jun 2023 16:12:20 -0400 Subject: [PATCH] added weather factory needed for cold water temperature --- scripts/ep_workflow.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/ep_workflow.py b/scripts/ep_workflow.py index 31643f23..2f595df6 100644 --- a/scripts/ep_workflow.py +++ b/scripts/ep_workflow.py @@ -7,7 +7,7 @@ import csv from hub.imports.geometry_factory import GeometryFactory from hub.imports.construction_factory import ConstructionFactory from hub.imports.usage_factory import UsageFactory -from hub.exports.exports_factory import ExportsFactory +from hub.imports.weather_factory import WeatherFactory from hub.exports.energy_building_exports_factory import EnergyBuildingsExportsFactory from hub.helpers.dictionaries import Dictionaries @@ -17,6 +17,7 @@ try: file_path = (Path(__file__).parent.parent / 'input_files' / 'selected_building.geojson') out_path = (Path(__file__).parent.parent / 'out_files') files = glob.glob(f'{out_path}/*') + for file in files: if file != '.gitignore': os.remove(file) @@ -33,6 +34,8 @@ try: print('enrich constructions... done') UsageFactory('nrcan', city).enrich() print('enrich usage... done') + WeatherFactory('epw', city).enrich() + print('enrich weather... done') area = 0 volume = 0 @@ -43,7 +46,7 @@ try: print('exporting:') - _idf = EnergyBuildingsExportsFactory('idf', city, out_path).export_debug() + _idf = EnergyBuildingsExportsFactory('idf', city, out_path).export() print(' idf exported...') _idf.run()