From ac812243537003c71287cd12447ab0394b3d7066 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 5 Jul 2024 13:44:13 +0200 Subject: [PATCH] cover normalization of ft surface_rzfourier --- tests/geo/test_surface_rzfourier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/geo/test_surface_rzfourier.py b/tests/geo/test_surface_rzfourier.py index 39ceb6b53..fce6fec00 100755 --- a/tests/geo/test_surface_rzfourier.py +++ b/tests/geo/test_surface_rzfourier.py @@ -766,10 +766,10 @@ def test_fourier_transform_scalar(self): self.assertEqual(np.all(np.abs(ft_cosines[cosines_mask]) < 1e-10), True) # Transform back to real space: - field2 = s.inverse_fourier_transform_scalar(ft_sines, ft_cosines, stellsym=False) + field2 = s.inverse_fourier_transform_scalar(ft_sines, ft_cosines, stellsym=False, normalization=1/2*np.pi**2) # Check that the result is the same as the original field: - np.testing.assert_allclose(field, field2) + np.testing.assert_allclose(field/2*np.pi**2, field2) class SurfaceRZPseudospectralTests(unittest.TestCase): def test_names(self):