5.3.1.22.5.1. cli.db.setup.creates_models

cli.db.setup.creates_models(models_dicts: dict, directory: Path | Path) Sequence[BaseModel]

Create model parameter objects from JSON dictionaries.

This function iterates over the provided model definitions and instantiates the corresponding model classes. Currently supported: - “current limits” -> CurrentLimitModel.

Parameters:
  • models_dicts – Iterable of model definition dictionaries (typically a list of dicts). Each dict must contain at least the key "name".

  • directory – Path to the cell directory; passed through to models for optional file access.

Returns:

Sequence[BaseModel]

Constructed model parameter objects.

Raises:

ValueError – If a model name is unknown.