Models¶
Schema for model definitions¶
- class pigreads.schema.model.ModelDefinition(**data)¶
Bases:
BaseModelDefinition of a so-called model, i.e., the reaction-term.
Note: Additional fields are allowed stored in
meta.- See:
- Parameters:
data (
Any)
- __call__(**parameters)¶
Merge diffusivities, default parameters, and given parameters.
- description: str¶
A simple description of the model, what it was designed for, and its unique features.
- diffusivity: dict[str, float]¶
Dictionary that maps the names of variables to diffuse to their diffusivity.
- dois: list[str]¶
List of digital object identifiers in URL form, i.e., starting with
https://doi.org/10.
- model_config: ClassVar[ConfigDict]¶
Configuration for
pydantic.BaseModel.
- class pigreads.schema.model.ModelEntry(**data)¶
Bases:
BaseModelA model entry chooses a model by its key and which parameters to use.
- See:
- Parameters:
data (
Any)
- model_config: ClassVar[ConfigDict]¶
Configuration for
pydantic.BaseModel.
- classmethod normalise(values)¶
Normalise the model entry.
If the entry is a string, it is converted to a dictionary with an empty parameter set. If the entry is a dictionary with a single key, the key is used as the model key.
- parameters: MutableMapping[str, float]¶
The parameters of the model.