Skip to content

Commit

Permalink
Replace "np.testing.assert_almost_equal" with "np.testing.assert_arra…
Browse files Browse the repository at this point in the history
…y_almost_equal" for "Cupy".
  • Loading branch information
KelSolaar committed Jul 3, 2022
1 parent 04b2991 commit ae18e37
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_demosaicing_CFA_Bayer_bilinear(self):
BAYER_DIRECTORY, f"Lighthouse_Bilinear_{pattern}.exr"
)

np.testing.assert_almost_equal(
np.testing.assert_array_almost_equal(
demosaicing_CFA_Bayer_bilinear(
read_image(str(CFA))[..., 0], pattern
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_demosaicing_CFA_Bayer_Malvar2004(self):
BAYER_DIRECTORY, f"Lighthouse_Malvar2004_{pattern}.exr"
)

np.testing.assert_almost_equal(
np.testing.assert_array_almost_equal(
demosaicing_CFA_Bayer_Malvar2004(
read_image(str(CFA))[..., 0], pattern
),
Expand Down
4 changes: 2 additions & 2 deletions colour_demosaicing/bayer/demosaicing/tests/test_menon2007.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_demosaicing_CFA_Bayer_Menon2007(self):
BAYER_DIRECTORY, f"Lighthouse_Menon2007_{pattern}.exr"
)

np.testing.assert_almost_equal(
np.testing.assert_array_almost_equal(
demosaicing_CFA_Bayer_Menon2007(
read_image(str(CFA))[..., 0], pattern
),
Expand All @@ -63,7 +63,7 @@ def test_demosaicing_CFA_Bayer_Menon2007(self):
RGB = os.path.join(
BAYER_DIRECTORY, f"Lighthouse_Menon2007_NR_{pattern}.exr"
)
np.testing.assert_almost_equal(
np.testing.assert_array_almost_equal(
demosaicing_CFA_Bayer_Menon2007(
read_image(str(CFA))[..., 0],
pattern,
Expand Down
2 changes: 1 addition & 1 deletion colour_demosaicing/bayer/tests/test_masks.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_masks_CFA_Bayer(self):

for pattern in ("RGGB", "BGGR", "GRBG", "GBRG"):
mask = os.path.join(BAYER_DIRECTORY, f"{pattern}_Masks.exr")
np.testing.assert_almost_equal(
np.testing.assert_array_almost_equal(
tstack(masks_CFA_Bayer((8, 8), pattern)),
read_image(str(mask)),
decimal=7,
Expand Down
2 changes: 1 addition & 1 deletion colour_demosaicing/bayer/tests/test_mosaicing.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_mosaicing_CFA_Bayer(self):
CFA = os.path.join(
BAYER_DIRECTORY, f"Lighthouse_CFA_{pattern}.exr"
)
np.testing.assert_almost_equal(
np.testing.assert_array_almost_equal(
mosaicing_CFA_Bayer(image, pattern),
read_image(str(CFA))[..., 0],
decimal=7,
Expand Down

0 comments on commit ae18e37

Please sign in to comment.