From: W. Trevor King Date: Thu, 8 Sep 2011 15:20:51 +0000 (-0400) Subject: Add select_config example to get_piezo_config's doctest. X-Git-Tag: 0.6~37 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e309ea4899f00527e4b88d86430486a348a7f605;p=pypiezo.git Add select_config example to get_piezo_config's doctest. --- diff --git a/pypiezo/test.py b/pypiezo/test.py index 20a383b..bdc90a2 100644 --- a/pypiezo/test.py +++ b/pypiezo/test.py @@ -91,6 +91,9 @@ def get_piezo_config(storage=None): conversion-origin: 0 inverse-conversion-coefficients: 0, 1 inverse-conversion-origin: 0 + >>> d = p.select_config('inputs', 'deflection') + >>> d['name'] + 'deflection' """ piezo_config = _PiezoConfig(storage=storage) piezo_config['name'] = 'test piezo'