Skip to content

Adding automatic pause option to SimulationArgs#144

Merged
poorva1209 merged 1 commit intoGRIDAPPSD:developfrom
afisher1:feature/automaticSimulationPause
May 1, 2024
Merged

Adding automatic pause option to SimulationArgs#144
poorva1209 merged 1 commit intoGRIDAPPSD:developfrom
afisher1:feature/automaticSimulationPause

Conversation

@afisher1
Copy link
Copy Markdown
Contributor

@afisher1 afisher1 commented Apr 9, 2024

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.

@afisher1 afisher1 added the enhancement New feature or request label Apr 9, 2024
@afisher1 afisher1 requested review from Tylores and craigpnnl April 9, 2024 19:03
@poorva1209 poorva1209 merged commit c245124 into GRIDAPPSD:develop May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants