diff --git a/map.py b/map.py index 0ab171c3afd20a83194b5d8cf3c00ca4314f2d66..6978ac2dbdb16a16c33b471eec960fefa624d502 100644 --- a/map.py +++ b/map.py @@ -13,7 +13,16 @@ numeric_columns.remove('lat') FIRST_DAY = loading.FIRST_DAY LAST_DAY = loading.LAST_DAY - +''' +name: getDailyIndicator +description: verify date and return data from database +parameters: + * year: year in yyyy format + * month: month in mm format + * day: day in dd format + * indicators: list of indicators +return: list of dictionnary, a dictionnary for each station +''' def getDailyIndicator(year, month, day, indicators): # Verify if date exists in the database if verifyDateInPeriod(FIRST_DAY, LAST_DAY, year, month, day): @@ -39,11 +48,11 @@ def getDailyIndicator(year, month, day, indicators): return [] ''' -name : mapIndicator -description : Enregistre la carte représentant les indicateurs souhaités pour la date précisée en paramètre -parameters : - * date : date au format yyyy-mm-dd - * indicators : liste d'indicateurs +name: mapIndicator +description: save a map with stations' indicators for the chosen date +parameters: + * date : date in yyyy-mm-dd format + * indicators : list of indicators ''' def mapIndicator(date, indicators): # Split date and filter indicators