Incorporation of ventilation. Working.
This commit is contained in:
parent
ed57ce87a7
commit
89d885f971
|
@ -7,14 +7,14 @@ import csv
|
||||||
from hub.imports.geometry_factory import GeometryFactory
|
from hub.imports.geometry_factory import GeometryFactory
|
||||||
from hub.imports.construction_factory import ConstructionFactory
|
from hub.imports.construction_factory import ConstructionFactory
|
||||||
from hub.imports.usage_factory import UsageFactory
|
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.exports.energy_building_exports_factory import EnergyBuildingsExportsFactory
|
||||||
from hub.helpers.dictionaries import Dictionaries
|
from hub.helpers.dictionaries import Dictionaries
|
||||||
|
|
||||||
sys.path.append('./')
|
sys.path.append('./')
|
||||||
|
|
||||||
#try:
|
#try:
|
||||||
file_path = (Path(__file__).parent.parent / 'input_files' / 'IndividualSecondtest.geojson')
|
file_path = (Path(__file__).parent.parent / 'input_files' / 'selected_building_2864.geojson')
|
||||||
out_path = (Path(__file__).parent.parent / 'out_files')
|
out_path = (Path(__file__).parent.parent / 'out_files')
|
||||||
files = glob.glob(f'{out_path}/*')
|
files = glob.glob(f'{out_path}/*')
|
||||||
for file in files:
|
for file in files:
|
||||||
|
@ -34,7 +34,8 @@ ConstructionFactory('nrcan', city).enrich()
|
||||||
print('enrich constructions... done')
|
print('enrich constructions... done')
|
||||||
UsageFactory('nrcan', city).enrich()
|
UsageFactory('nrcan', city).enrich()
|
||||||
print('enrich usage... done')
|
print('enrich usage... done')
|
||||||
|
WeatherFactory('epw', city, file_name='CAN_PQ_Montreal.Intl.AP.716270_CWEC.epw').enrich()
|
||||||
|
print('weather factory... done')
|
||||||
area = 0
|
area = 0
|
||||||
volume = 0
|
volume = 0
|
||||||
for building in city.buildings:
|
for building in city.buildings:
|
||||||
|
@ -59,7 +60,7 @@ obj_file = str((out_path / f'{city.name}.obj').resolve())
|
||||||
# if ':00:00' in row[0]:
|
# if ':00:00' in row[0]:
|
||||||
# print(f'row: {row[0]}, {row[8]}, {row[9]}')
|
# print(f'row: {row[0]}, {row[8]}, {row[9]}')
|
||||||
|
|
||||||
print(f'info: {idf_file}, {csv_file}, {eso_file}, {area}, {volume}, {obj_file}')
|
#print(f'info: {idf_file}, {csv_file}, {eso_file}, {area}, {volume}, {obj_file}')
|
||||||
print('[simulation end]')
|
print('[simulation end]')
|
||||||
|
|
||||||
#except Exception as ex:
|
#except Exception as ex:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user