Skip to content

registry

registry

M0 calibration method registry.

register_m0_calibration

register_m0_calibration(name)

Decorator to register an M0 calibration method.

PARAMETER DESCRIPTION
name

Registry key for the method (e.g. 'voxelwise').

TYPE: str

RETURNS DESCRIPTION
Callable

Class decorator.

get_m0_calibration

get_m0_calibration(name)

Get an M0 calibration method instance by name.

PARAMETER DESCRIPTION
name

Method name (e.g. 'voxelwise').

TYPE: str

RETURNS DESCRIPTION
BaseM0Calibration

Calibration method instance.

RAISES DESCRIPTION
DataValidationError

If method name is not recognized.

list_m0_calibrations

list_m0_calibrations()

Return names of all registered M0 calibration methods.

RETURNS DESCRIPTION
list[str]

Sorted list of registered method names.