registry ¶
A registry object for Transform objects.
This registry can add a class to the registry either by using metaclass=TransformRegistry in a new object or using the wrapper function as a header @TransformRegistry.register(name)
Classes:
-
TransformRegistry
–A specific registry for splitters.
TransformRegistry ¶
Bases: AbstractRegistry
A specific registry for splitters.
ABC meta is needed here as AbstractRegistry implements ABC and uses @abstractmethod
Methods:
-
save_class
–Checks for the right class and saves it if class correct.
save_class classmethod
¶
save_class(
class_to_register: AbstractTransform,
name: str | None = None,
) -> None
Checks for the right class and saves it if class correct.
Source code in src/stimulus/data/transform/registry.py
23 24 25 26 27 28 29 30 31 |
|