Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Bazin
nf26-metar
Commits
7676d1d2
Commit
7676d1d2
authored
Jun 23, 2019
by
Oscar Roisin
Browse files
add doc function objective 2
parent
26305be1
Changes
1
Hide whitespace changes
Inline
Side-by-side
map.py
View file @
7676d1d2
...
...
@@ -13,6 +13,7 @@ numeric_columns.remove('lat')
FIRST_DAY
=
loading
.
FIRST_DAY
LAST_DAY
=
loading
.
LAST_DAY
def
getDailyIndicator
(
year
,
month
,
day
,
indicators
):
# Verify if date exists in the database
if
verifyDateInPeriod
(
FIRST_DAY
,
LAST_DAY
,
year
,
month
,
day
):
...
...
@@ -37,6 +38,13 @@ def getDailyIndicator(year, month, day, indicators):
else
:
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
'''
def
mapIndicator
(
date
,
indicators
):
# Split date and filter indicators
year
,
month
,
day
=
date
.
split
(
'-'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment