Skip to content

Commit

Permalink
adjust tol
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Oct 17, 2023
1 parent 6368c11 commit da627a7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_moffat.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ def test_moffat_maxk():

fk = psf.kValue(psf.maxk,0).real/psf.flux
print(f'{psf.beta} \t {int(psf.trunc)} \t {thresh:.1e} \t {fk:.3e}')
if hasattr(galsim, "_galsim"):
rtol = 1.e-7 if psf.trunc == 0 else 3.e-3
atol = 0
else:
rtol = 0.0
atol = 1e-1
# if hasattr(galsim, "_galsim"):
rtol = 1.e-7 if psf.trunc == 0 else 3.e-3
atol = 0
# else:
# rtol = 0.0
# atol = 1e-1
np.testing.assert_allclose(abs(psf.kValue(psf.maxk,0).real)/psf.flux, thresh, rtol=rtol, atol=atol)


Expand Down

0 comments on commit da627a7

Please sign in to comment.