tlpipe.timestream.line_rfi.Flag.stop_iteration

Flag.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.