Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nf26-metar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Simon Bazin
nf26-metar
Commits
fa548820
Commit
fa548820
authored
Jun 23, 2019
by
Oscar Roisin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update doc for map.py
parent
d9dbe1a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
map.py
map.py
+15
-6
No files found.
map.py
View file @
fa548820
...
@@ -13,7 +13,16 @@ numeric_columns.remove('lat')
...
@@ -13,7 +13,16 @@ numeric_columns.remove('lat')
FIRST_DAY
=
loading
.
FIRST_DAY
FIRST_DAY
=
loading
.
FIRST_DAY
LAST_DAY
=
loading
.
LAST_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
):
def
getDailyIndicator
(
year
,
month
,
day
,
indicators
):
# Verify if date exists in the database
# Verify if date exists in the database
if
verifyDateInPeriod
(
FIRST_DAY
,
LAST_DAY
,
year
,
month
,
day
):
if
verifyDateInPeriod
(
FIRST_DAY
,
LAST_DAY
,
year
,
month
,
day
):
...
@@ -39,11 +48,11 @@ def getDailyIndicator(year, month, day, indicators):
...
@@ -39,11 +48,11 @@ def getDailyIndicator(year, month, day, indicators):
return
[]
return
[]
'''
'''
name
: mapIndicator
name: mapIndicator
description
: Enregistre la carte représentant les indicateurs souhaités pour la date précisée en paramètr
e
description
: save a map with stations' indicators for the chosen dat
e
parameters
:
parameters:
* date : date
au format yyyy-mm-dd
* date : date
in yyyy-mm-dd format
* indicators : list
e d'indicateurs
* indicators : list
of indicators
'''
'''
def
mapIndicator
(
date
,
indicators
):
def
mapIndicator
(
date
,
indicators
):
# Split date and filter indicators
# Split date and filter indicators
...
...
Write
Preview
Markdown
is supported
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