registry
registry
¶
IVIM model registry for dynamic lookup and extension.
This module provides the registry pattern for IVIM signal models, enabling runtime model registration and retrieval by name.
register_ivim_model
¶
Decorator to register an IVIM signal model.
Registers an IVIMModel subclass in IVIM_MODEL_REGISTRY so it
can be looked up by name via get_ivim_model().
| PARAMETER | DESCRIPTION |
|---|---|
name
|
Registry key for the model (e.g.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Callable
|
Class decorator. |
Examples:
get_ivim_model
¶
Get an IVIM model instance by name.
| PARAMETER | DESCRIPTION |
|---|---|
name
|
Model name:
TYPE:
|
**kwargs
|
Additional keyword arguments passed to the model constructor.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
IVIMModel
|
Model instance. |
| RAISES | DESCRIPTION |
|---|---|
DataValidationError
|
If model name is not recognized. |