From 08d0b505099afdf2e18b1793b0fe12db53876afd Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 16 Mar 2012 00:54:07 -0400 Subject: [PATCH] 'enumerate' is not subscriptable in the soft jump code. --- pypiezo/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2