projects
/
pypiezo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6ffb6d
)
Add select_config example to get_piezo_config's doctest.
author
W. Trevor King
<wking@drexel.edu>
Thu, 8 Sep 2011 15:20:51 +0000
(11:20 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Thu, 8 Sep 2011 15:20:51 +0000
(11:20 -0400)
pypiezo/test.py
patch
|
blob
|
history
diff --git
a/pypiezo/test.py
b/pypiezo/test.py
index 20a383b27509cbb66638afabe3a9c288c679bf14..bdc90a2e4a632ff63ed654ae44bd6f8e7264b186 100644
(file)
--- 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'