From: W. Trevor King Date: Wed, 4 Aug 2010 16:21:35 +0000 (-0400) Subject: Fix info.columns -> info['columns'] in vclamp.scale() X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e19b115bbff9515313d4b2660d530556e42f3c0d;p=hooke.git Fix info.columns -> info['columns'] in vclamp.scale() --- diff --git a/hooke/plugin/vclamp.py b/hooke/plugin/vclamp.py index d4d5b18..6292633 100644 --- a/hooke/plugin/vclamp.py +++ b/hooke/plugin/vclamp.py @@ -59,14 +59,14 @@ def scale(hooke, curve, block=None): 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