fn callback(callback: PyObject) -> SystemWrapper
Expand description

Terminate simulation based on the return value of a callback

Parameters:

callback - callback passed the current tick and returning a bool whether the simulation should terminate