Subsystem Search

substation.config

The API reference for load_config.

load_config

load_config(path: str | pathlib.Path | None = None) -> AppConfig

Load the configuration a scan runs with: the shipped defaults, with your own file merged over them.

config.yaml.default, which ships with Substation and holds every setting and band, is always loaded first. A user configuration file is then merged over it, setting by setting, so what it gives replaces the shipped value and everything it leaves out keeps its default.

Parameters

Returns

Raises