else:
params = {'curve':curve, 'block':block}
b = curve.data[block]
- if ('surface distance (m)' not in b.info.columns
- or 'surface adjusted deflection (m)' not in b.info.columns):
+ if ('surface distance (m)' not in b.info['columns']
+ or 'surface adjusted deflection (m)' not in b.info['columns']):
try:
contact._run(hooke, inqueue, outqueue, params)
except PoorFit, e:
raise PoorFit('Could not fit %s %s: %s'
% (curve.path, block, str(e)))
- if ('deflection (N)' not in b.info.columns):
+ if ('deflection (N)' not in b.info['columns']):
force._run(hooke, inqueue, outqueue, params)
return curve