Delete 'support_material/tutorial_2/main_level_2.py'
This commit is contained in:
parent
922523c0bf
commit
aacc756805
|
@ -1,29 +0,0 @@
|
|||
from hub.imports.geometry_factory import GeometryFactory
|
||||
from hub.helpers.dictionaries import Dictionaries
|
||||
from hub.imports.construction_factory import ConstructionFactory
|
||||
from hub.imports.usage_factory import UsageFactory
|
||||
from hub.exports.energy_building_exports_factory import EnergyBuildingsExportsFactory
|
||||
|
||||
geojson_file = './test_one_building.geojson'
|
||||
city = GeometryFactory('geojson',
|
||||
geojson_file,
|
||||
height_field='citygml_me',
|
||||
year_of_construction_field='ANNEE_CONS',
|
||||
function_field='CODE_UTILI',
|
||||
function_to_hub=Dictionaries().montreal_function_to_hub_function).city
|
||||
|
||||
|
||||
ConstructionFactory('nrcan', city).enrich()
|
||||
UsageFactory('nrcan' , city).enrich()
|
||||
|
||||
for building in city.buildings:
|
||||
print(building.function)
|
||||
for internal_zone in building.internal_zones:
|
||||
for usage in internal_zone.usages:
|
||||
for schedule in usage.occupancy.occupancy_schedules:
|
||||
print(schedule.day_types, schedule.values)
|
||||
|
||||
|
||||
# Export to IDF (Energy+)
|
||||
EnergyBuildingsExportsFactory('idf', city, './').export()
|
||||
|
Loading…
Reference in New Issue
Block a user