Skip to content

Commit

Permalink
bump tolerance in stain_extraction_pca test
Browse files Browse the repository at this point in the history
rtol of 1e-6 is sufficient given that the precision used internally is always float32
  • Loading branch information
grlee77 committed Jul 10, 2024
1 parent 3236dd8 commit cc787fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cucim/tests/unit/core/test_stain_normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def test_result_value(self, image, expected):
stain_extraction_pca(image)
else:
result = stain_extraction_pca(image)
cp.testing.assert_allclose(result, expected)
cp.testing.assert_allclose(result, expected, rtol=1e-6)


class TestStainNormalizerMacenko:
Expand Down

0 comments on commit cc787fd

Please sign in to comment.