Correct small bug in merge city

This commit is contained in:
Guille Gutierrez 2023-03-14 11:28:34 -04:00
parent 658c44389e
commit 5637f219f8

View File

@ -459,6 +459,7 @@ class City:
for surface in city_object.surfaces: for surface in city_object.surfaces:
radiation = surface.global_irradiance radiation = surface.global_irradiance
if 'year' not in radiation and 'month' not in radiation: if 'year' not in radiation and 'month' not in radiation:
continue continue
elif "year" in radiation: elif "year" in radiation:
building_radiation += radiation["year"].iloc[0] building_radiation += radiation["year"].iloc[0]