GRIDAPPSD / gridappsd-python

Python connector to gridappsd
5 stars 6 forks source link

Adding automatic pause option to SimulationArgs #144

Closed afisher1 closed 7 months ago

afisher1 commented 7 months ago

This change provides a solution for application testing issues when running against simulations running faster than real time.

To test and use in application testing:

The latest develop of the gridappsd platform must be used.

At a minimum create a Simulation class whose SimulationArgs.run_realtime=False and SimulationArgs.pause_after_measurements=True. The simulation should enter the paused state after each time it publishes measurements. When application testing, after receiving a measurements message from the Simulation instance Simulation.resume() will need to be called to move the simulation forward.