dirconn.simulation.scenario.load_scenario#
- dirconn.simulation.scenario.load_scenario(source: str | PathLike[str]) ScenarioSpec#
Load a scenario from a YAML file or by the name of a shipped one.
- Parameters:
source (str or path) – A file path, or a bare name such as
"chain"forSCENARIO_DIR / "chain.yaml".- Raises:
FileNotFoundError – If a path does not exist.
ValueError – For an unknown shipped name and for every problem of
ScenarioSpec.from_dict(); the message starts with the file name.