No subdirectories allowed for motor controllers
Motor controller files placed inside a subdirectory are not reachable by the the
emotion
config plugin.
Example: @gmant put Newport files into a subdirectory, when running bliss there is an exception from config/plugins/emotion.py line 46.
module = __import__('bliss.controllers.motors.%s' % name,fromlist=[''])
It substitutes name as NewportXPS which really should be newport.NewportXPS. If I put this latter name as the class the import succeeds but
controller_class = getattr(module, name)
fails because name should be NewportXPS
only. I've tried adding the keyword
module: newport
.
Please would you advise how to configure the yml. It current currently is:
controller: class: NewportXPS name: xps-q tcp: 160.103.146.95:5001 nbAxes: 2 axes: etc etc ....
The directory
motors/ newport/ init.py NewportXPS.py XPS.py