Skipt cost errors

This commit is contained in:
Guille 2024-06-22 18:01:41 +02:00
parent 0f37da8a15
commit f13941d148

View File

@ -105,8 +105,6 @@ for city in cities:
results = values[0][0]
try:
calculate_building(city_object, results, scenario_ids[city[1]])
except KeyError:
pass
building_data['insel meb'] = results['insel meb']
building_data['costs'] = results['costs']
building_data['operational_co2'] = results['operational_co2']
@ -114,5 +112,8 @@ for city in cities:
montreal_retrofit_db[f'meb_{city[1].replace(" ", "_")}'].insert_one(building_data)
except:
pass
except KeyError:
pass
print(f'Completed in: {datetime.datetime.now() - start}')