fixed stupid bug addressing a dict by dict{key} instead of dict[key]
This commit is contained in:
parent
44b3687e7c
commit
894776ca67
|
@ -97,13 +97,13 @@ for file in files:
|
|||
interpolator += ['float(table.data[%i])'%(int(column))]
|
||||
else:
|
||||
file['croak'].write('column %s not found...\n'%column)
|
||||
brokenFormula{label} = True
|
||||
brokenFormula[label] = True
|
||||
else:
|
||||
try:
|
||||
interpolator += ['float(table.data[%i])'%table.labels.index(column)]
|
||||
except:
|
||||
file['croak'].write('column %s not found...\n'%column)
|
||||
brokenFormula{label} = True
|
||||
brokenFormula[label] = True
|
||||
|
||||
if label not in brokenFormula:
|
||||
evaluator[label] = "'" + formula + "'.format(" + ','.join(interpolator) + ")"
|
||||
|
|
Loading…
Reference in New Issue