Skipt cost errors
This commit is contained in:
parent
0f37da8a15
commit
f13941d148
15
main.py
15
main.py
|
@ -105,14 +105,15 @@ for city in cities:
|
||||||
results = values[0][0]
|
results = values[0][0]
|
||||||
try:
|
try:
|
||||||
calculate_building(city_object, results, scenario_ids[city[1]])
|
calculate_building(city_object, results, scenario_ids[city[1]])
|
||||||
|
building_data['insel meb'] = results['insel meb']
|
||||||
|
building_data['costs'] = results['costs']
|
||||||
|
building_data['operational_co2'] = results['operational_co2']
|
||||||
|
try:
|
||||||
|
montreal_retrofit_db[f'meb_{city[1].replace(" ", "_")}'].insert_one(building_data)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
building_data['insel meb'] = results['insel meb']
|
|
||||||
building_data['costs'] = results['costs']
|
|
||||||
building_data['operational_co2'] = results['operational_co2']
|
|
||||||
try:
|
|
||||||
montreal_retrofit_db[f'meb_{city[1].replace(" ", "_")}'].insert_one(building_data)
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
print(f'Completed in: {datetime.datetime.now() - start}')
|
print(f'Completed in: {datetime.datetime.now() - start}')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user