mosaik 3.5 released
The mosaik team is delighted to announce the release of mosaik 3.5!
This version introduces two powerful new features: transform functions for connections and the ability to pause and resume simulations. In addition to this, we have also restructured the documentation and completely rewritten the tutorial.
Transform functions: Adapting data on the fly
When connecting different simulators in mosaik, their inputs and outputs may not always align perfectly. Maybe one simulator uses watts while another expects megawatts, or one treats positive power values as generation while another considers them consumption. Previously, handling these differences required modifying the simulators themselves, or adding separate converter simulators. Now, with transform functions, simple conversions can be handled directly within the connection setup.
A detailed guide for using these transform functions can be found in the new how-to section of the mosaik docs.
Pausing and Resuming Simulations
In some scenarios, you may want to pause and resume a running simulation. This feature is particularly useful for inspecting intermediate results without terminating the simulation or when using graphical display tools such as WebViz. mosaik now provides a simple mechanism to pause and resume a simulation using an asyncio.Event.
This event can be triggered by both a manual input such as a keyboard key being pressed or by setting an automatic break at a certain simulation step.
Guides for setting up either of the two options can be found in the how-to section.
Other Improvements and Fixes
In addition to transform functions and pause/resume functionality, mosaik 3.5 includes several minor bug fixes and optimizations to improve stability and performance. As always, we encourage you to try out the new features and share your feedback on our GitHub discussions.
We hope this update makes your simulations smoother and more adaptable. Happy simulating with mosaik 3.5!