Skip to content

Commit

Permalink
fix assert array equal
Browse files Browse the repository at this point in the history
  • Loading branch information
qbp758 committed Oct 6, 2023
1 parent 6e273b7 commit 4c2a36d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/rainbow/util/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""


def is_array_equal(arr1, arr2, dec=8):
def is_array_equal(arr1, arr2):
"""
2022-04-06 Kenny TODO: Write proper documentation.
Expand All @@ -15,7 +15,7 @@ def is_array_equal(arr1, arr2, dec=8):
:param dec:
:return:
"""
return None == np.testing.assert_array_almost_equal(arr1, arr2, dec)
return None == np.testing.assert_allclose(arr1, arr2, rtol=1e-5, atol=1e-8)


def is_array_not_equal(arr1, arr2):
Expand Down

0 comments on commit 4c2a36d

Please sign in to comment.