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=ff76907c38dde8ae0725729c461bd44f76f0f909;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