Scenario execution and CLI#

Versioned JSON configuration adapter. Unknown keys fail rather than being ignored.

x2power.scenario.run_scenario(config)[source]#
Parameters:

config (Mapping[str, Any])

Return type:

SimulationResult

Command-line scenario execution, comparison and optional plotting.

x2power.cli.main(argv=None)[source]#
Parameters:

argv (list[str] | None)

Return type:

int