calamari.fitting.models.BENT_CABLE_GAMMA_FLOOR_SPACINGS#

calamari.fitting.models.BENT_CABLE_GAMMA_FLOOR_SPACINGS = 0.5#

The smallest gamma fit_breakpoint() allows, in median sample spacings of x. A bend of half-width under half a spacing is narrower than the gap between samples, so it holds at most one of them. Every other point then sees exactly the sharp corner with the same other parameters, and gamma can do nothing but fit that one point’s noise: rounding on that scale is not resolved by the sampling. So half a spacing is the resolution floor, and a gamma that ends there (within its error) says the corner is sharp at this resolution. Keeping the floor positive also keeps gamma away from zero, where the cost is flat in it and HESSE cannot invert.