register_exclusion

bapsf_motion.motion_builder.exclusions.helpers.register_exclusion(exclusion_cls: Type[BaseExclusion])

A decorator for registering a exclusion layer classes into the exclusion layer registry.

Parameters:

exclusion_cls – The exclusion layer class to be registered. The class has to be a subclass of BaseExclusion and the registry key will be taken from exclusion_type.

Examples

@register_exclusion
class MyExclusion(BaseExclusion):
    ...