Skip to content

Commit 120657d

Browse files
committed
Replace "np.testing.assert_almost_equal" with "np.testing.assert_array_almost_equal" for "Cupy".
1 parent d8dcc86 commit 120657d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

colour_checker_detection/detection/tests/test_segmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_as_8_bit_BGR_image(self):
109109
image_o = as_8_bit_BGR_image(image_i)
110110

111111
self.assertEqual(image_o.dtype, np.uint8)
112-
np.testing.assert_almost_equal(
112+
np.testing.assert_array_almost_equal(
113113
image_o[16, 16, ...],
114114
(cctf_encoding(image_i[16, 16, ::-1]) * 255).astype(np.uint8),
115115
)

0 commit comments

Comments
 (0)