pcdsdevices.utils.set_standard_ordering

pcdsdevices.utils.set_standard_ordering(cls: type[Device]) type[Device]

Set a sensible “standard” ordering for use in typhos.

This ordering is: - Devices first, then signals - Within the above, kind order - Within a kind, alphabetical order

This is not universally applicable and is just a suggested starting point.

Parameters:

cls (Device subclass) – The Device subclass that we’d like to rearrange the order of.

Returns:

cls (Device subclass) – The same class from the input, mutated. This is returned so that set_standard_ordering can be used as a class decorator.