Commit a888e0e5 authored by Jeff Piollé's avatar Jeff Piollé

fix for metadata initialization

parent 0e1021fc
......@@ -121,8 +121,8 @@ class AbstractFeature(object):
self.description = description
self.observation_source = source
self.metadata = metadata
if not metadata:
self.metadata = {}
if metadata is None:
self.metadata = OrderedDict()
def __str__(self):
result = 'FEATURE : %s\n' % self.__class__.__name__
......@@ -770,7 +770,7 @@ class AbstractFeature(object):
if self._datastorage is None:
return self.metadata
else:
metadata = {}
metadata = OrderedDict()
for att in self._datastorage.read_global_attributes():
metadata[att] = self._datastorage.read_global_attribute(att)
return metadata
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment