tlpipe.timestream.phase_closure.Closure.stop_iteration

Closure.stop_iteration(force_stop=False)[source]

Determine whether to stop the iteration.

Return True if this is the second iteration in the non-iterable case, or when run out of the given iteration numbers in the iterable case, or when force_stop is True.