Don't initialize devices explicitly in doctests.
authorW. Trevor King <wking@drexel.edu>
Thu, 15 Mar 2012 21:30:38 +0000 (17:30 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 15 Mar 2012 21:30:38 +0000 (17:30 -0400)
commit79e4110e3972b5dc981b1f68973092efb5cdb28c
tree82546267e1cafb144ad16b0044b3027d78fe598b
parentd87be975a582f003b268629f014a4d6fdd47ecf2
Don't initialize devices explicitly in doctests.

Rely on the internal `.load_from_config()` methods to do that for us.
This reduces duplication (e.g. device filename only set in config
defaults, not in doctests too).  It also makes it posible to use
several devices to build your AFM interface, where the old doctests
would only work with all the communication going through a single
card.
pyafm/afm.py
pyafm/digital_port.py
pyafm/stepper.py