Skip to content

Commit

Permalink
tests: relax tolerances
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Nov 7, 2024
1 parent 3ce7243 commit 9c1d301
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 81 deletions.
5 changes: 2 additions & 3 deletions Wrappers/Python/test/test_DataContainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1037,13 +1037,12 @@ def test_sapyb_datacontainer_f(self):
# equals to 1 + -1 = 0
out = d1.sapyb(a,d2,b)
res = np.zeros_like(d1.as_array())
np.testing.assert_array_equal(res, out.as_array())
np.testing.assert_array_almost_equal(res, out.as_array(), decimal=7)

out.fill(0)
d1.sapyb(a,d2,b, out)
res = np.zeros_like(d1.as_array())
np.testing.assert_array_equal(res, out.as_array())

np.testing.assert_array_almost_equal(res, out.as_array(), decimal=7)

def test_sapyb_scalar_f(self):
# a,b scalar
Expand Down
Loading

0 comments on commit 9c1d301

Please sign in to comment.