calamari.repeats.MAX_REPEATS#

calamari.repeats.MAX_REPEATS = 32#

Sanity bound on how many rows one repeat group may hold. This is not a statement about how many repeats an experiment may take; it is a guard on the tolerance being wrong. sweeps.segment_by_constant documents that consecutive-difference chaining deliberately tolerates unbounded cumulative drift – right for finding plateaus, wrong here, because a slow measure-while-sweeping ramp whose consecutive steps fall under tolerance would otherwise chain into one group and average an entire sweep to a point. Raise it explicitly if a run really does repeat more than this.