From: W. Trevor King Date: Fri, 16 Mar 2012 04:54:07 +0000 (-0400) Subject: 'enumerate' is not subscriptable in the soft jump code. X-Git-Tag: 0.7~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=08d0b505099afdf2e18b1793b0fe12db53876afd;p=pypiezo.git 'enumerate' is not subscriptable in the soft jump code. --- diff --git a/pypiezo/base.py b/pypiezo/base.py index 3be164f..98b5e06 100644 --- a/pypiezo/base.py +++ b/pypiezo/base.py @@ -754,7 +754,7 @@ class Piezo (object): return self.jump(axis_name=axis_name, position=position) else: for i,pos in enumerate(_numpy.linspace( - orig_pos, position, steps+1))[1:]: + orig_pos, position, steps+1)[1:]): _LOG.debug('jump {} to {} ({} of {} steps)'.format( axis_name, pos, i, steps)) self.jump(axis_name=axis_name, position=pos)