From 906c482bb314f1ff1608001ed5c7652827e37f83 Mon Sep 17 00:00:00 2001 From: William Lucas Date: Mon, 6 Oct 2025 15:44:07 +0100 Subject: [PATCH] Remove test using calculateFWHM from test_atm_psf_fft() as this is covered by a test with calculateMomentRadius, and the result of calculateFWHM is non-deterministic / dependent on NumPy version (currently being fixed in GalSim). --- tests/test_psf.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/test_psf.py b/tests/test_psf.py index 4cbf8b41..191a1852 100644 --- a/tests/test_psf.py +++ b/tests/test_psf.py @@ -419,8 +419,6 @@ def test_atm_psf_fft(self): print('Peak of reference PSF (flux=1.e5): ',ref_img.array.max()) print('Peak of FFT PSF (flux=1.e8): ',img.array.max()) - print('FWHM of reference PSF: ',ref_img.view(scale=0.2).calculateFWHM()) - print('FWHM of FFT PSF: ',img.view(scale=0.2).calculateFWHM()) print('Rmom of reference PSF: ',ref_img.view(scale=0.2).calculateMomentRadius()) print('Rmom of FFT PSF: ',img.view(scale=0.2).calculateMomentRadius()) @@ -432,8 +430,6 @@ def test_atm_psf_fft(self): np.testing.assert_allclose(ref_img.array.max(), img.array.max(), rtol=0.05) # The sizes should also be pretty close - np.testing.assert_allclose(ref_img.view(scale=0.2).calculateFWHM(), - img.view(scale=0.2).calculateFWHM(), rtol=0.08) np.testing.assert_allclose(ref_img.view(scale=0.2).calculateMomentRadius(), img.view(scale=0.2).calculateMomentRadius(), rtol=0.1)