From 50524d9dc22b397c78dc8caea783f83e5bad3937 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 17 Jan 2012 16:47:58 -0500 Subject: [PATCH] Add 'direction' keyword to Piezo.read_inputs' call to .channels. --- pypiezo/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2