projects
/
pypiezo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b0ec87
)
'enumerate' is not subscriptable in the soft jump code.
author
W. Trevor King
<wking@drexel.edu>
Fri, 16 Mar 2012 04:54:07 +0000
(
00:54
-0400)
committer
W. Trevor King
<wking@drexel.edu>
Fri, 16 Mar 2012 04:54:07 +0000
(
00:54
-0400)
pypiezo/base.py
patch
|
blob
|
history
diff --git
a/pypiezo/base.py
b/pypiezo/base.py
index 3be164f666a1309e699843b63e65b4c746fd9e19..98b5e062dd767e29317db16fa8dbdb41d51080f6 100644
(file)
--- 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)