core.system.base:System.load_config()

Load and validate a configuration section from the matr1x TOML file.

Usage

Source

core.system.base:System.load_config(
    model_class,
    section,
    sensitive_keys=None,
)

The configuration is loaded from the specified section of the global matr1x configuration and validated against the provided Pydantic model class.

Parameters

model_class: type[BaseModel]

The Pydantic model class to use for validation.

section: str

The TOML section name to load (e.g., ‘matr1x.systems.my_system’).

sensitive_keys: list[str] = None
A list of keys that should be moved to sensitive_config.