MethodRegister

MethodRegister#

class mrinufft._utils.MethodRegister(register_name, docstring_subs=None)[source]#

Bases: object

A Decorator to register methods of the same type in dictionnaries.

Parameters:
  • name (str) – The register name

  • docstring_sub (dict[str,str]) – List of potential subsititutions to apply to the docstring.

  • register_name (str)

  • docstring_subs (dict[str, str] | None)

Methods

__init__

make_getter

Attributes

registry

__call__(method_name=None)[source]#

Register the function in the registry.

It also substitute placeholder in docstrings.