Skip to content

Commit

Permalink
Changed tolerances on testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MargaretDuff committed Aug 14, 2023
1 parent 70de544 commit 72350c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Wrappers/Python/test/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ def test_get_p2_default(self):
if isinstance(tv._get_p2(), BlockDataContainer):
for xa,xb in zip(tv._get_p2(),tv.gradient.range_geometry().allocate(0)):
np.testing.assert_allclose(xa.as_array(), xb.as_array(),
rtol=1e-5, atol=1e-5)
rtol=1e-8, atol=1e-8)

def test_get_p2_after_prox_iteration_has_changed(self):
data = dataexample.SHAPES.get(size=(64, 64))
Expand All @@ -1199,7 +1199,7 @@ def test_get_p2_after_prox_iteration_has_not_changed(self):
if isinstance(tv._get_p2(), BlockDataContainer):
for xa,xb in zip(tv._get_p2(),tv.gradient.range_geometry().allocate(0)):
np.testing.assert_allclose(xa.as_array(), xb.as_array(),
rtol=1e-5, atol=1e-5)
rtol=1e-8, atol=1e-8)

class TestLeastSquares(unittest.TestCase):

Expand Down

0 comments on commit 72350c5

Please sign in to comment.