From e19b115bbff9515313d4b2660d530556e42f3c0d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 4 Aug 2010 12:21:35 -0400 Subject: [PATCH] Fix info.columns -> info['columns'] in vclamp.scale() --- hooke/plugin/vclamp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.26.2