MethodRegister#
- class mrinufft._utils.MethodRegister(register_name: str, docstring_subs: dict[str, str] | None = None)[source]#
Bases:
objectA Decorator to register methods of the same type in dictionnaries.
- Parameters:
Methods
__init__Create a get_{register_name} function to get methods from the registry.
Attributes
Get the registry dictionary.
registry_global- __call__(method_name=None)[source]#
Register the function in the registry.
It also substitute placeholder in docstrings.