Skip to content

Commit fee09ca

Browse files
authored
Merge pull request #10 from GalSim-developers/fix-tests-5
test: remove dead branches in test modifications for moffat profile
2 parents bcaad95 + 801b6df commit fee09ca

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

tests/test_moffat.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,7 @@ def test_moffat_properties():
153153
cen = galsim.PositionD(0, 0)
154154
np.testing.assert_equal(psf.centroid, cen)
155155
# Check Fourier properties
156-
if is_jax_galsim():
157-
np.testing.assert_allclose(psf.maxk, 11.634597424960159, atol=0, rtol=0.2)
158-
else:
159-
np.testing.assert_array_almost_equal(psf.maxk, 11.634597424960159)
156+
np.testing.assert_array_almost_equal(psf.maxk, 11.634597424960159)
160157
np.testing.assert_array_almost_equal(psf.stepk, 0.62831853071795873)
161158
np.testing.assert_array_almost_equal(psf.kValue(cen), test_flux+0j)
162159
np.testing.assert_array_almost_equal(psf.half_light_radius, 1.0)
@@ -170,10 +167,7 @@ def test_moffat_properties():
170167
psf = galsim.Moffat(beta=2.0, half_light_radius=1.,
171168
trunc=2*fwhm_backwards_compatible, flux=test_flux)
172169
np.testing.assert_equal(psf.centroid, cen)
173-
if is_jax_galsim():
174-
np.testing.assert_allclose(psf.maxk, 11.634597424960159, atol=0, rtol=0.2)
175-
else:
176-
np.testing.assert_array_almost_equal(psf.maxk, 11.634597424960159)
170+
np.testing.assert_array_almost_equal(psf.maxk, 11.634597424960159)
177171
np.testing.assert_array_almost_equal(psf.stepk, 0.62831853071795862)
178172
np.testing.assert_array_almost_equal(psf.kValue(cen), test_flux+0j)
179173
np.testing.assert_array_almost_equal(psf.half_light_radius, 1.0)

0 commit comments

Comments
 (0)