Skip to content

registry

registry

ASL quantification model registry.

register_quantification_model

register_quantification_model(name)

Decorator to register an ASL quantification model.

PARAMETER DESCRIPTION
name

Registry key for the model (e.g. 'pcasl_single_pld').

TYPE: str

RETURNS DESCRIPTION
Callable

Class decorator.

get_quantification_model

get_quantification_model(name)

Get an ASL quantification model instance by name.

PARAMETER DESCRIPTION
name

Model name (e.g. 'pcasl_single_pld').

TYPE: str

RETURNS DESCRIPTION
BaseASLModel

Model instance.

RAISES DESCRIPTION
DataValidationError

If model name is not recognized.

list_quantification_models

list_quantification_models()

Return names of all registered ASL quantification models.

RETURNS DESCRIPTION
list[str]

Sorted list of registered model names.