Closed IvarsKarpics closed 5 years ago
This is a good idea. There used to be something like that fro the Bricks. We should not abuse, though, with the number of categories we create. It is also essential to agree on the category names before applying the rule. This is my proposal for the list of categories: positioning (all motors, piezos, encoders), detectors (pixel, MCA, cameras), io (input/output - actuators), instrumentation (diffractometer, beamstop, ...) and sequence (collection, XRF, energy scan, workflows, ...). Did I forget anything?
I think I would prefer to derive that kind of information from its abstract base class, or would this category have a different function ?
I'm not sure that I know how what you mean by the import part ?
Use abstract classes to deriver new classes. api/beamline object to be initialized via config file and not categories
What about adding a
__category__
label to the hardware objects? In the qt bricks category is used to sort all bricks in the available bricks tree. In this case it would be useful to see it in the summary log:And maybe in the future it could be possible to do some clever imports like
from motors import TangoMotor