Hardcoded pixel distance in pair_peaks
Routine pair_peaks
in libcrystfel/src/predict-refine.c contains the following abomination:
/* Is the supposed reflection anywhere near the peak? */
get_detector_pos(refl, &fs, &ss);
pd = pow(fs - rps[i].peak->fs, 2.0)
+ pow(ss - rps[i].peak->ss, 2.0);
if ( pd > 10.0 * 10.0 ) continue; /* FIXME Hardcoded distance */
This seems to have worked surprisingly well over several years, but pixel sizes are changing and this is probably compromising the refinement quality for some datasets.