energy_validation_tool/main.py

20 lines
574 B
Python
Raw Normal View History

import json
from pathlib import Path
from energy_validation import EnergyValidation
# load the dataset you want to simulate
data_file = open(Path('./data/VMTrial_cleaned.geojson').resolve(), 'r')
city = json.load(data_file)
buildings = city['features']
# input the usage type and quantities that you would like to simulate
test_batch = {
'1000': 10,
'4413': 10,
'1921': 5
}
validate_meb_ep = EnergyValidation()
# if cleanup is True, removes all files in tmp directory
2023-04-21 14:04:15 -04:00
validate_meb_ep.run(building_set=buildings, building_quantities=test_batch, cleanup=False)