2023-05-31 12:20:03 -04:00
|
|
|
"""
|
|
|
|
Cost workflow initialization
|
|
|
|
"""
|
|
|
|
import glob
|
|
|
|
import os
|
|
|
|
from pathlib import Path
|
|
|
|
|
2023-06-01 14:07:41 -04:00
|
|
|
# to remove
|
|
|
|
|
2023-05-31 12:53:59 -04:00
|
|
|
file_path = Path('./data/selected_building_2864.geojson').resolve()
|
2023-05-31 12:20:03 -04:00
|
|
|
CONSTRUCTION_FORMAT = 'nrcan'
|
|
|
|
USAGE_FORMAT = 'comnet'
|
|
|
|
ENERGY_SYSTEM_FORMAT = 'montreal_custom'
|
|
|
|
ATTIC_HEATED_CASE = 0
|
|
|
|
BASEMENT_HEATED_CASE = 1
|
2023-05-31 12:53:59 -04:00
|
|
|
CLIMATE_REFERENCE_CITY = 'Montreal'
|
|
|
|
WEATHER_FILE = 'CAN_PQ_Montreal.Intl.AP.716270_CWEC.epw'
|
|
|
|
WEATHER_FORMAT = 'epw'
|
|
|
|
CURRENT_STATUS = 0
|
2023-06-01 14:07:41 -04:00
|
|
|
|
|
|
|
# constants
|
|
|
|
|
2023-05-31 12:53:59 -04:00
|
|
|
SKIN_RETROFIT = 1
|
|
|
|
SYSTEM_RETROFIT_AND_PV = 2
|
|
|
|
SKIN_RETROFIT_AND_SYSTEM_RETROFIT_AND_PV = 3
|
2023-05-31 12:20:03 -04:00
|
|
|
RETROFITTING_SCENARIOS = [
|
|
|
|
CURRENT_STATUS,
|
|
|
|
SKIN_RETROFIT,
|
|
|
|
SYSTEM_RETROFIT_AND_PV,
|
|
|
|
SKIN_RETROFIT_AND_SYSTEM_RETROFIT_AND_PV
|
|
|
|
]
|
2023-05-31 12:36:54 -04:00
|
|
|
tmp_folder = Path('./tmp').resolve()
|
|
|
|
out_path = Path('./outputs').resolve()
|
2023-05-31 12:20:03 -04:00
|
|
|
files = glob.glob(f'{out_path}/*')
|
|
|
|
print('path', file_path)
|
|
|
|
for file in files:
|
|
|
|
if file != '.gitignore':
|
|
|
|
os.remove(file)
|