From 269096dd0ead4ddaa917d95fad8da231bb5c67a5 Mon Sep 17 00:00:00 2001 From: beckermr Date: Tue, 17 Oct 2023 05:11:38 -0500 Subject: [PATCH] adjust tol --- tests/test_moffat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_moffat.py b/tests/test_moffat.py index 47e72a4f28..a2fd1266f5 100644 --- a/tests/test_moffat.py +++ b/tests/test_moffat.py @@ -192,13 +192,13 @@ def test_moffat_maxk(): galsim.Moffat(beta=12.9, scale_radius=11, flux=23, trunc=1000), ] threshs = [1.e-3, 1.e-4, 0.03] - print('beta \t trunc \t thresh \t kValue(maxk)') + print('beta \t trunc \t thresh \t kValue(maxk) \t maxk') for psf in psfs: for thresh in threshs: psf = psf.withGSParams(maxk_threshold=thresh) rtol = 1.e-7 if psf.trunc == 0 else 3.e-3 fk = psf.kValue(psf.maxk,0).real/psf.flux - print(f'{psf.beta} \t {int(psf.trunc)} \t {thresh:.1e} \t {fk:.3e}') + print(f'{psf.beta} \t {int(psf.trunc)} \t {thresh:.1e} \t {fk:.3e} \t {psf.maxk:.3e}') np.testing.assert_allclose(abs(psf.kValue(psf.maxk,0).real)/psf.flux, thresh, rtol=rtol)