lables is now a method, not an attribute

This commit is contained in:
Martin Diehl 2016-05-18 18:31:54 +02:00
parent be99018ce3
commit aa9a8b21c7
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ for name in filenames:
for label in datainfo['label']:
key = label
if key in table.labels:
if key in table.labels(raw = True):
active.append(label)
column[label] = table.labels.index(key) # remember columns of requested data
else:

View File

@ -89,7 +89,7 @@ for name in filenames:
# ------------------------------------------ assemble header --------------------------------------
table.info_append(scriptID + '\t' + ' '.join(sys.argv[1:]))
table.labels_append(mappedTable.labels) # extend ASCII header with new labels
table.labels_append(mappedTable.labels(raw = True)) # extend ASCII header with new labels
table.head_write()
# ------------------------------------------ process data ------------------------------------------