dodal.devices.selectable_source#

Classes

SelectedSource

SourceSelector

Device that holds a selected_source signal enum of SelectedSource.

Functions

get_obj_from_selected_source(...)

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:
Return type:

TypeVar(T)