simplified column key generation

This commit is contained in:
Philip Eisenlohr 2014-08-21 16:17:23 +00:00
parent 96b16dd97b
commit 9aa22d4a08
1 changed files with 1 additions and 2 deletions

View File

@ -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: