checking float values within a treshold of 1e-15 in unit test
@@ -470,7 +470,8 @@ class FilterTest():
im = self.im[:, :, 5]
dt = spim.distance_transform_edt(input=im)
dt_hold_peaks = ps.filters.hold_peaks(dt, axis=0)
- assert np.all(np.max(dt_hold_peaks, axis=0) == np.max(dt, axis=0))
+ diff = abs(np.max(dt_hold_peaks, axis=0) - np.max(dt, axis=0))
+ assert np.all(diff <= 1e-15)
if __name__ == '__main__':
