pySimBlocks.project.load_simulator¶
- pySimBlocks.project.load_simulator.load_simulator_from_project(project_yaml: str | Path) Tuple[Simulator, PlotConfig | None][source]¶
Build and return a ready-to-run Simulator from a unified project.yaml.
Loads the project configuration, constructs the model, and initializes a
Simulatorready to callrun().- Parameters:
project_yaml – Path to the unified
project.yamlfile.- Returns:
A tuple
(sim, plot_cfg)wheresimis the initializedSimulatorandplot_cfgis thePlotConfigor None if no plots are configured.- Raises:
FileNotFoundError – If the project file does not exist.
ValueError – If the project file is malformed or required fields are missing.