rizer.spice.backend.services.config_loader#

Load circuit configurations from YAML files (STONE-inspired format).

Each YAML file defines one circuit type with its metadata and default parameters. The STONE convention uses component type names as keys (e.g. resistance_model: {Constant: {}}) and this loader converts that structure into the flat dicts expected by the Pydantic schemas and the frontend API.

Attributes#

Functions#

load_circuit_configs(→ tuple[dict[str, ...)

Scan the rizer/configs/ directory's *.yaml files for the registry, defaults, and output labels.

Module Contents#

rizer.spice.backend.services.config_loader.logger#
rizer.spice.backend.services.config_loader.load_circuit_configs() tuple[dict[str, rizer.spice.backend.models.schemas.CircuitInfo], dict[str, dict], dict[str, dict[str, str]]]#

Scan the rizer/configs/ directory’s *.yaml files for the registry, defaults, and output labels.

Returns:

A 3-tuple (registry, defaults, output_labels). registry maps circuit-id to CircuitInfo; defaults maps circuit-id to a flat parameter dict for the API; output_labels maps circuit-id to a dict of series_key -> label.

Return type:

tuple