default_modality_mode

sofia_redux.scan.utilities.class_provider.default_modality_mode(modality)[source]

Return a default mode class based on modality class.

For example, A CoupledModality should return CoupledMode. If no analogous mode is found, a default base Mode will be returned.

Parameters:
modalityModality
Returns:
class

The correct default mode class for the given modality.