GRIDAPPSD / GOSS-GridAPPS-D

14 stars 27 forks source link

Adding optional automatic simulation pause after publish #1772

Closed afisher1 closed 3 months ago

afisher1 commented 3 months ago

This adds the option to specify the helicsgossbridge to pause the simulation automatically after publishing measurements.

To test: Add the key:value pair "pause_after_measurements": true to the "simulation_config" dictionary value in the simulation request. This should cause the simulation to enter the PAUSE state automatically after every time the helicsgossbridge sends measurements. This should be only be utilized by the Simulation class in gridappsd-python for application testing purposes.

craig8 commented 3 months ago

@afisher1 phase_in_property = ((self._difference_attribute_map.get(x.get("attribute", ""), is not used anywhere