calamari.exceptions.RepeatGroupError#
- exception calamari.exceptions.RepeatGroupError#
A proposed group of repeat measurements is not one setpoint.
Repeat aggregation collapses several rows into one, so every row in a group has to be a measurement of the same thing. Two mechanisms propose groups – the instrument’s own
Measurement Numbercounter, and a setpoint tolerance – and neither is trusted on its own: every group is checked afterwards against the setpoint columns, and this is raised when one fails.That check is not defensive decoration. A
Measurement Numberthat runs1,1,2,2rather than1,2,1,2pairs repeat 1 of one setpoint with repeat 2 of the previous one, and a counter that is really a global measurement index (1,2,3,...,N) proposes a single group containing the whole file. Both would otherwise average unrelated measurements together silently – in a multi-frequency AC file, two different frequencies.Also raised when a group exceeds
max_repeats, which means the tolerance is wrong rather than that the file holds that many repeats: the consecutive-difference chaining underneath is documented incalamari.sweeps.segment_by_constant()as deliberately tolerating unbounded cumulative drift, which is right for plateau finding and wrong here – a slow measure-while-sweeping ramp would otherwise chain into one group and average an entire sweep to a point.The message names the offending rows and the observed span, so the fix is either a tolerance that matches the file or a look at the file itself.