calamari.fitting.models.BENT_CABLE_GAMMA_START_SPACINGS#

calamari.fitting.models.BENT_CABLE_GAMMA_START_SPACINGS = 2.0#

Where the bent_cable() guess starts gamma, in median sample spacings of x. A bend narrower than one spacing may hold no sample at all, and then the cost does not change with gamma: MIGRAD’s first step sees a flat direction. Two spacings put about four samples inside the bend, so the cost has a gradient in gamma from the start, whether the true corner is sharp or rounded, while staying a small part of any range with MIN_POINTS_PER_SEGMENT points on each arm, so the seed is still close to the sharp-corner solution the rest of the guess comes from.