simplified column key generation
This commit is contained in:
parent
96b16dd97b
commit
9aa22d4a08
|
@ -86,8 +86,7 @@ for file in files:
|
|||
|
||||
for datatype,info in datainfo.items():
|
||||
for label in info['label']:
|
||||
key = {True :'1_%s',
|
||||
False:'%s' }[info['len']>1]%label
|
||||
key = '1_'+label if info['len'] > 1 else label # columns of non-scalars need to start with '1_'
|
||||
if key not in table.labels:
|
||||
file['croak'].write('column %s not found...\n'%key)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue