Skip to content

Commit

Permalink
Slightly loosen test that is too tight for some systems
Browse files Browse the repository at this point in the history
  • Loading branch information
rmjarvis committed Jun 27, 2024
1 parent ffca8f7 commit b122c2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_zernike.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def Z11_grad(x, y):
# fig.colorbar(scat2, ax=axes[2])
# plt.show()

np.testing.assert_allclose(Z11.evalCartesianGrad(x, y), Z11_grad(x, y), rtol=0, atol=1e-12)
np.testing.assert_allclose(Z11.evalCartesianGrad(x, y), Z11_grad(x, y), rtol=1.e-12, atol=1e-12)

Z28 = Zernike([0]*28+[1])

Expand All @@ -400,7 +400,7 @@ def Z28_grad(x, y):
grady = -6*np.sqrt(14)*y*(5*x**4 - 10*x**2*y**2 + y**4)
return gradx, grady

np.testing.assert_allclose(Z28.evalCartesianGrad(x, y), Z28_grad(x, y), rtol=0, atol=1e-12)
np.testing.assert_allclose(Z28.evalCartesianGrad(x, y), Z28_grad(x, y), rtol=1.e-12, atol=1e-12)

# Now try some finite differences on a broader set of input

Expand Down

0 comments on commit b122c2a

Please sign in to comment.