Skip to content

Commit

Permalink
Sim start check
Browse files Browse the repository at this point in the history
Signed-off-by: SystemsPurge <[email protected]>
  • Loading branch information
SystemsPurge committed Nov 7, 2024
1 parent 6ac91a7 commit 65bd910
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion villas/controller/components/simulators/dpsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def start(self, payload):
self.logger.info('Starting simulation...')

self.logger.info(self.sim)
if self.sim.start() is None:
check = self.sim.start()
self.logger.info(f"+++++{check}+++++")
if check is None:
self.change_state('running')
else:
self.change_to_error('failed to start simulation')
Expand Down

0 comments on commit 65bd910

Please sign in to comment.