diff --git a/scripts/ep_workflow.py b/scripts/ep_workflow.py index 9ea9719f..009e337f 100644 --- a/scripts/ep_workflow.py +++ b/scripts/ep_workflow.py @@ -11,6 +11,8 @@ from imports.geometry_factory import GeometryFactory from imports.construction_factory import ConstructionFactory from imports.usage_factory import UsageFactory from exports.exports_factory import ExportsFactory +from exports.energy_building_exports_factory import EnergyBuildingsExportsFactory + try: gml = '' @@ -34,6 +36,8 @@ try: building.year_of_construction = 2006 if building.function is None: building.function = 'large office' + for building in city.buildings: + print(building.function) ConstructionFactory('nrel', city).enrich() print('enrich constructions... done') UsageFactory('comnet', city).enrich() @@ -51,7 +55,7 @@ try: ExportsFactory('obj', city, out_path).export() print(' geometry exported...') # todo: _idf exporter does not catch errors in exporting - _idf = ExportsFactory('idf', city, out_path).export_debug() + _idf = EnergyBuildingsExportsFactory('idf', city, out_path).export_debug() print(' idf exported...') _idf.run()