From 6434d3f66e98ef83a1a194d1f87988476a206dae Mon Sep 17 00:00:00 2001 From: beckermr Date: Sat, 9 May 2026 06:31:18 -0500 Subject: [PATCH] test: put back test for kvalue accuracy --- tests/test_interpolatedimage.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/test_interpolatedimage.py b/tests/test_interpolatedimage.py index e79baac3b4..6d3b2bc520 100644 --- a/tests/test_interpolatedimage.py +++ b/tests/test_interpolatedimage.py @@ -374,12 +374,8 @@ def test_interpolant(): -(vm+1) * sici(np.pi*(vm+1))[0] -(vp-1) * sici(np.pi*(vp-1))[0] +(vp+1) * sici(np.pi*(vp+1))[0] ) / (2*np.pi) - if is_jax_galsim(): - np.testing.assert_allclose(ln.kval(x), true_kval, rtol=3.0e-4, atol=3.0e-6) - np.testing.assert_allclose(ln.kval(x[12]), true_kval[12], rtol=3.0e-4, atol=3.0e-6) - else: - np.testing.assert_allclose(ln.kval(x), true_kval, rtol=1.e-4, atol=1.e-8) - assert np.isclose(ln.kval(x[12]), true_kval[12]) + np.testing.assert_allclose(ln.kval(x), true_kval, rtol=1.e-4, atol=1.e-8) + assert np.isclose(ln.kval(x[12]), true_kval[12]) # Base class is invalid. assert_raises(NotImplementedError, galsim.Interpolant)