changed the exporter to adapt to modifications in hub
This commit is contained in:
parent
a08a880bea
commit
63b4b2dc70
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user