Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GeoPEAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
toar-data
GeoPEAS
Commits
0aaa888b
Commit
0aaa888b
authored
6 years ago
by
leufen1
Browse files
Options
Downloads
Patches
Plain Diff
added todos: provenance information is not complete and check units of serializer return
parent
5fab975c
No related branches found
No related tags found
2 merge requests
!8
New App wheat production
,
!6
Resolve "New App: Wheat Production"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
wheat_production/serializers.py
+2
-0
2 additions, 0 deletions
wheat_production/serializers.py
with
2 additions
and
0 deletions
wheat_production/serializers.py
+
2
−
0
View file @
0aaa888b
...
...
@@ -10,6 +10,7 @@ from rest_framework.serializers import BaseSerializer
def
get_provenance
(
obj
):
"""
construct provenance information on wheat production dataset
"""
# TODO: Fill right provenance information
prov
=
OrderedDict
([
(
'
dataset_name
'
,
'
?
'
),
(
'
dataset_description
'
,
"""
Wheat production values for the globe at 5 arc minute resolution. The data are in
...
...
@@ -43,6 +44,7 @@ class AggSerializer(BaseSerializer):
vlength
=
len
(
val
)
except
TypeError
:
vlength
=
1
# TODO: check units below
if
vlength
>
1
:
properties
=
OrderedDict
([
(
'
agg_function
'
,
agg_function
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment