You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
In Python sim.wait() kills the task it's waiting on. #385
With sim.wait() it would sometimes work, and sometimes not. I still don't understand why is this happening. When exactly should I use sim.wait() and when not?
The problem is that there is a mistake in wait(). It calls PyTask::join() which interrupts the task then waits for it to exit. It will be fixed in the next release. What you're doing with the while loop is fine.
Activity
[-]Python API simulation start() fails[/-][+]Run example with Python API, cannot get surface[/+]nikcleju commentedon Mar 5, 2023
I managed to get it running by replacing the
sim.wait()aftersim.start()with polling if running:With
sim.wait()it would sometimes work, and sometimes not. I still don't understand why is this happening. When exactly should I usesim.wait()and when not?jcoffland commentedon Mar 9, 2023
The problem is that there is a mistake in
wait(). It callsPyTask::join()which interrupts the task then waits for it to exit. It will be fixed in the next release. What you're doing with the while loop is fine.[-]Run example with Python API, cannot get surface[/-][+]In Python sim.wait() kills the task it's waiting on.[/+]Fix Python sim.wait() #385