projects
/
pycomedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f5aeee
)
calibration: shift settings[0] doctest spacing.
author
W. Trevor King
<wking@tremily.us>
Wed, 17 Oct 2012 17:00:22 +0000
(13:00 -0400)
committer
W. Trevor King
<wking@tremily.us>
Wed, 17 Oct 2012 17:05:13 +0000
(13:05 -0400)
pycomedi/calibration.pyx
patch
|
blob
|
history
diff --git
a/pycomedi/calibration.pyx
b/pycomedi/calibration.pyx
index 49f0028526b4a592d5ff2e2c9f04670e19cdd818..ec89ec0d8dfeab90ce073b686accb271d3bb9e8b 100644
(file)
--- a/
pycomedi/calibration.pyx
+++ b/
pycomedi/calibration.pyx
@@
-316,11
+316,11
@@
cdef class CalibrationSetting (object):
>>> c = d.parse_calibration()
>>> s = c.settings[0]
-
>>> print(s)
<CalibrationSetting device:/dev/comedi0 subdevice:0>
>>> print(s.subdevice) # doctest: +ELLIPSIS
<pycomedi.subdevice.Subdevice object at 0x...>
+
>>> for s in c.settings:
... print('{} {}'.format(s.subdevice.index, s.subdevice.get_type()))
... print(' channels: {}'.format(s.channels))