[DLMED] fix CI test
@@ -32,7 +32,7 @@ class TestScaleIntensityRangePercentiles(NumpyImageTestCase2D):
scaler = ScaleIntensityRangePercentiles(lower=lower, upper=upper, b_min=b_min, b_max=b_max)
for p in TEST_NDARRAYS:
result = scaler(p(img))
- assert_allclose(result, p(expected))
+ assert_allclose(result, p(expected), rtol=1e-4)
def test_relative_scaling(self):
img = self.imt
@@ -51,7 +51,7 @@ class TestScaleIntensityRangePercentiles(NumpyImageTestCase2D):
for p in TEST_NDARRAYS:
result = scaler(p(img))
- assert_allclose(result, p(expected_img))
+ assert_allclose(result, p(expected_img), rtol=1e-4)
def test_invalid_instantiation(self):
self.assertRaises(ValueError, ScaleIntensityRangePercentiles, lower=-10, upper=99, b_min=0, b_max=255)
