sardana-org / sardana

Moved to GitLab: https://gitlab.com/sardana-org/sardana
39 stars 52 forks source link

Add a ViewOption for an order of motors for wa macro #570

Open daneos opened 7 years ago

daneos commented 7 years ago

One of the ideas from Sardana Workshop at Solaris.

It'd be nice to have a configurable order in which wa macro displays motors. It could have the following values:

cpascual commented 7 years ago

I suggest to try to implement this using the same mechanisms (and syntax) as with the key argument for the sorted python function: https://wiki.python.org/moin/HowTo/Sorting

(I mean for the more generic cases)

daneos commented 7 years ago

I think the more generic solution, the better. I also have an additional request from our scientists, to allow empty spaces in motor list. They want wa to display motors in a way where each line of motors is different section of a beamline, and sections have different number of motors.