Skip to content
Snippets Groups Projects
Commit 0aaa888b authored by leufen1's avatar leufen1
Browse files

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!8New App wheat production,!6Resolve "New App: Wheat Production"
......@@ -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),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment