StepwiseIterator#

class StepwiseIterator(sim)[source]#

Bases: object

Iterator over each step within an open simulation.

Examples

>>> for step in sim.steps:
...     if step % 100 == 0:
...         step_res = sim.get_current_state()
>>> res = sim.results