From: W. Trevor King Date: Tue, 17 Jan 2012 21:47:58 +0000 (-0500) Subject: Add 'direction' keyword to Piezo.read_inputs' call to .channels. X-Git-Tag: 0.6~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=50524d9dc22b397c78dc8caea783f83e5bad3937;p=pypiezo.git Add 'direction' keyword to Piezo.read_inputs' call to .channels. --- diff --git a/pypiezo/base.py b/pypiezo/base.py index 8cea54b..a816bc1 100644 --- 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