From 894776ca67c57afcad4bbe0f3211e7655e20731e Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Wed, 11 Dec 2013 14:30:27 +0000 Subject: [PATCH] fixed stupid bug addressing a dict by dict{key} instead of dict[key] --- processing/post/addCalculation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/post/addCalculation.py b/processing/post/addCalculation.py index 009659212..975739f88 100755 --- a/processing/post/addCalculation.py +++ b/processing/post/addCalculation.py @@ -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) + ")"