Skip to content

Commit

Permalink
fix: testing functions do not have atol/rtol
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Aug 22, 2024
1 parent ae74cc7 commit ea082f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_moffat.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def test_moffat_properties():
np.testing.assert_equal(psf.centroid, cen)
# Check Fourier properties
if is_jax_galsim():
np.testing.assert_array_almost_equal(psf.maxk, 11.634597424960159, atol=0, rtol=0.2)
np.testing.assert_allclose(psf.maxk, 11.634597424960159, atol=0, rtol=0.2)
else:
np.testing.assert_array_almost_equal(psf.maxk, 11.634597424960159)
np.testing.assert_array_almost_equal(psf.stepk, 0.62831853071795873)
Expand All @@ -154,7 +154,7 @@ def test_moffat_properties():
trunc=2*fwhm_backwards_compatible, flux=test_flux)
np.testing.assert_equal(psf.centroid, cen)
if is_jax_galsim():
np.testing.assert_array_almost_equal(psf.maxk, 11.634597424960159, atol=0, rtol=0.2)
np.testing.assert_allclose(psf.maxk, 11.634597424960159, atol=0, rtol=0.2)
else:
np.testing.assert_array_almost_equal(psf.maxk, 11.634597424960159)
np.testing.assert_array_almost_equal(psf.stepk, 0.62831853071795862)
Expand Down

0 comments on commit ea082f5

Please sign in to comment.