...
 
Commits (2)
......@@ -60,10 +60,13 @@ def map_by_indicator_and_time(indicator, date, hour):
else:
dict_by_station[station] = (dict_by_station[station] + val) / 2
logging.info('{} stations had data for this date :'.format(len(dict_by_station)))
if(len(dict_by_station) == 0):
logging.info('No stations had data for this date and hour, sorry !')
return
logging.info('{} stations had data for this date'.format(len(dict_by_station)))
for key, value in dict_by_station.items():
vals.append(value)
print('{} : {}'.format(key, round(value, 1)))
# Build map
......