![]() |
![]() ![]()
Experimental Physics and
| ||||||||||||||||
|
Hi Terry, Sorry for the trouble. The Device classes in pyepics, including the Motor class, are a little unusual in that they override>>> from epics import Motor >>> m1 = Motor('XXX:m1') 1.000 2.000 >>> print m1.FOO will hang for a while, trying to connect to 'XXX:m1.FOO', eventually returning None. Right now, the list of "attributes to not convert to PVs" is hardwired into the Motor class (and other Devices too), and I don't think it can be easily altered by a subclass. At least, I don't see an easy way to do that. It would certainly be reasonable to change this behavior. I think it might be preferable to have an explicit list of attributes that will be converted to PVs rather than trying to convert every unknown attribute to a PV. That would better allow subclassing, and avoid silent hanging on typos. This might take a little effort, but is probably worth it. --Matt On Wed, May 28, 2014 at 7:33 PM, Terry Cornall <[email protected]> wrote:
-- --Matt Newville <newville at cars.uchicago.edu> 630-252-0431
| ||||||||||||||||
ANJ, 17 Dec 2015 |
![]() · Download · Search · IRMIS · Talk · Documents · Links · Licensing · |