Closed dagewa closed 11 months ago
With the previous code, if number == d_star_sq_hkl.size() then the following line would fail with IndexError (https://github.com/xia2/xia2/issues/749):
number == d_star_sq_hkl.size()
IndexError
self.kernel_width = d_star_sq_hkl[sort_permut[number]]-d_star_sq_low
The change ensures that number does not exceed d_star_sq_hkl.size()-1
number
d_star_sq_hkl.size()-1
With the previous code, if
number == d_star_sq_hkl.size()
then the following line would fail withIndexError
(https://github.com/xia2/xia2/issues/749):The change ensures that
number
does not exceedd_star_sq_hkl.size()-1