register_transform

bapsf_motion.transform.helpers.register_transform(transform_cls: Type[BaseTransform])

A decorator for registering a coordinate transform classes into the associated registry.

Parameters:

transform_cls – The coordinate transform class to be registered. The class has to be a subclass of BaseTransform and the registry key will be taken from transform_type.

Examples

@register_transform
class MyTransform(BaseTransform):
    ...