Add 'direction' keyword to Piezo.read_inputs' call to .channels.
authorW. Trevor King <wking@drexel.edu>
Tue, 17 Jan 2012 21:47:58 +0000 (16:47 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 17 Jan 2012 21:47:58 +0000 (16:47 -0500)
pypiezo/base.py

index 8cea54bb38ca6df1890a6d22cd0b34c16e07e380..a816bc1ed4353159da4f945facf30f658c7feac8 100644 (file)
@@ -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