From 52827bdbaefd25e8402f0f50080ed68cdbad1561 Mon Sep 17 00:00:00 2001 From: Santiago Soler Date: Wed, 13 Sep 2023 14:49:10 -0700 Subject: [PATCH] Run serial vs parallel test on prisms without Numba Extend test coverage by allowing to run the serial vs parallel test on prism forward model even when Numba is disabled. --- harmonica/tests/test_prism.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/harmonica/tests/test_prism.py b/harmonica/tests/test_prism.py index 8a13c94d4..eecc04a52 100644 --- a/harmonica/tests/test_prism.py +++ b/harmonica/tests/test_prism.py @@ -284,7 +284,7 @@ def test_prism_against_infinite_slab(): npt.assert_allclose(analytical, results[-1]) -@run_only_with_numba +@pytest.mark.use_numba def test_prisms_parallel_vs_serial(): """ Check if the parallelized run returns the same results as the serial one @@ -297,7 +297,7 @@ def test_prisms_parallel_vs_serial(): ] densities = [2000, 3000, 4000, 5000] coordinates = vd.grid_coordinates( - region=(-100, 100, -100, 100), spacing=20, extra_coords=10 + region=(-100, 100, -100, 100), shape=(3, 3), extra_coords=10 ) for field in ("potential", "g_z"): result_parallel = prism_gravity(