phenotypic.abc_.register_detection_mode#
- phenotypic.abc_.register_detection_mode(cls: type[DetectionMode]) type[DetectionMode][source]
Class decorator that instantiates cls and registers it by name.
- Raises:
ValueError – If a mode with the same name is already registered.
- Parameters:
cls (type[DetectionMode])
- Return type: