From 9d4461a8c63a826274c52da2e33fc884abc75de2 Mon Sep 17 00:00:00 2001 From: Romain Hugonnet Date: Tue, 18 Apr 2023 17:13:39 -0800 Subject: [PATCH] Remove time tests that randomly fails --- tests/test_spatialstats.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_spatialstats.py b/tests/test_spatialstats.py index 03d878b2..9cffc05f 100644 --- a/tests/test_spatialstats.py +++ b/tests/test_spatialstats.py @@ -947,21 +947,21 @@ def test_neff_exact_and_approx_hugonnet(self) -> None: ) # Check that the function runs with default parameters - t0 = time.time() + # t0 = time.time() neff_exact = xdem.spatialstats.neff_exact( coords=coords, errors=errors, params_variogram_model=params_variogram_model ) - t1 = time.time() + # t1 = time.time() # Check that the non-vectorized version gives the same result neff_exact_nv = xdem.spatialstats.neff_exact( coords=coords, errors=errors, params_variogram_model=params_variogram_model, vectorized=False ) - t2 = time.time() + # t2 = time.time() assert neff_exact == pytest.approx(neff_exact_nv, rel=0.001) # Check that the vectorized version is faster (vectorized for about 250 points here) - assert (t1 - t0) < (t2 - t1) + # assert (t1 - t0) < (t2 - t1) # Check that the approximation function runs with default parameters, sampling 100 out of 250 samples # t3 = time.time()