dodal.devices.selectable_source#
Classes
Device that holds a selected_source signal enum of SelectedSource. |
Functions
Util function that maps enum values for SelectedSource to two objects. |
- dodal.devices.selectable_source.get_obj_from_selected_source(selected_source: SelectedSource, s1: T, s2: T) T[source]#
Util function that maps enum values for SelectedSource to two objects. It then returns one of the objects that corrosponds to the selected_source value.
- Parameters:
selected_source (
SelectedSource)s1 (
TypeVar(T))s2 (
TypeVar(T))
- Return type:
TypeVar(T)