myogestic.utils.config.Registry.register_feature#
- Registry.register_feature(name, feature)[source]#
Register a feature in the registry.
Note
The feature name must be unique and the attribute name of the feature will be set to the feature name.
- Parameters:
name (str) – The name of the feature.
feature (Type[FilterBaseClass]) – The feature to register.
- Raises:
ValueError – If the feature is already registered