5.3.1.22.4.1. cli.db.model_parameter.BaseModel

class cli.db.model_parameter.BaseModel(name: str, sources: list[Path | Path | str], _directory: Path | Path)

Base class for model parameter dataclasses.

This dataclass provides common fields and initialization checks that are shared by all model parameter implementations (e.g., current limit models).

name

Human-readable model name. Must be a string.

Type:

str

sources

List of data or reference sources. Elements can be: - absolute or relative filesystem paths (pathlib.Path), - paths inside a ZIP archive (zipfile.Path), - strings (treated as relative paths and resolved against _directory).

Type:

list[zipfile.Path | pathlib.Path | str]

_directory

Root directory used to resolve relative sources when given as strings. Can be a real filesystem path or a ZIP virtual path.

Type:

zipfile.Path | pathlib.Path

__init__(name: str, sources: list[Path | Path | str], _directory: Path | Path) None

Methods

__init__(name, sources, _directory)

Attributes

name

sources