projects
/
pypiezo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14897ea
)
Add 'direction' keyword to Piezo.read_inputs' call to .channels.
author
W. Trevor King
<wking@drexel.edu>
Tue, 17 Jan 2012 21:47:58 +0000
(16:47 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Tue, 17 Jan 2012 21:47:58 +0000
(16:47 -0500)
pypiezo/base.py
patch
|
blob
|
history
diff --git
a/pypiezo/base.py
b/pypiezo/base.py
index 8cea54bb38ca6df1890a6d22cd0b34c16e07e380..a816bc1ed4353159da4f945facf30f658c7feac8 100644
(file)
--- a/
pypiezo/base.py
+++ b/
pypiezo/base.py
@@
-512,7
+512,8
@@
class Piezo (object):
"Read all inputs and return a `name`->`value` dictionary."
# There is no multi-channel read instruction, so preform reads
# sequentially.
- ret = dict([(n, c.data_read()) for n,c in self.channels('input')])
+ ret = dict([(n, c.data_read())
+ for n,c in self.channels(direction='input')])
_LOG.debug('current position: %s' % ret)
return ret