Commit 8e5c3f29 authored by thomas.forbriger's avatar thomas.forbriger

[FIX] (util): fix extraction of list of keys

They way a list of dictionary keys were extracted apparently was not correct
parent 369fccd1
...@@ -137,8 +137,8 @@ class Basetable(): ...@@ -137,8 +137,8 @@ class Basetable():
os.write("Data stream %s (type %s):\n" % os.write("Data stream %s (type %s):\n" %
(self.collection, self.datatype)) (self.collection, self.datatype))
years=self.years.keys() years=list(self.years.keys())
channels=self.channels.keys() channels=list(self.channels.keys())
years.sort() years.sort()
channels.sort() channels.sort()
...@@ -317,7 +317,7 @@ def writeoutput(os, tables): ...@@ -317,7 +317,7 @@ def writeoutput(os, tables):
for k in tables.keys(): for k in tables.keys():
types.append(tables[k].datatype) types.append(tables[k].datatype)
keylist=tables.keys() keylist=list(tables.keys())
keylist.sort() keylist.sort()
keylist.reverse() keylist.reverse()
......
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