'enumerate' is not subscriptable in the soft jump code.
authorW. Trevor King <wking@drexel.edu>
Fri, 16 Mar 2012 04:54:07 +0000 (00:54 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 16 Mar 2012 04:54:07 +0000 (00:54 -0400)
pypiezo/base.py

index 3be164f666a1309e699843b63e65b4c746fd9e19..98b5e062dd767e29317db16fa8dbdb41d51080f6 100644 (file)
@@ -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)