libmuscle.runner module¶
A simple runner for Python-only models.
Starting instances is out of scope for MUSCLE 3, but is also very useful for testing and prototyping. So we have a little bit of support for it in this module.
- libmuscle.runner.run_simulation(configuration: Configuration, implementations: Dict[str, Callable]) None [source]¶
Runs a simulation with the given configuration and instances.
The yMMSL document must contain both a model and settings.
This function will start the necessary instances described in the yMMSL document. To do so, it needs the corresponding implementations, which are given as a dictionary mapping the implementation name to a Python function (or any callable).
- Parameters
configuration – A description of the model and settings.
instances – A dictionary of instances to run.