From 39e72b162e00a23c68a96fabb81a16334417fe44 Mon Sep 17 00:00:00 2001 From: michaeldenes Date: Thu, 5 Dec 2024 12:09:04 +0100 Subject: [PATCH] Add # noqa flag for ruff fix --- tests/test_kernels.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_kernels.py b/tests/test_kernels.py index 0060577..c8273b9 100644 --- a/tests/test_kernels.py +++ b/tests/test_kernels.py @@ -35,8 +35,9 @@ def make_standard_particleset(fieldset, settings): def checkBelowDataDepth(particle, fieldset, time): # The vertical mixing kernel can push particles below the test dataset depth, throwing an # out of bounds error. This kernel will keep particles above the max depth. - if particle.depth + particle_ddepth >= fieldset.max_depth: - particle_ddepth = fieldset.max_depth - particle.depth - 0.5 # move half a meter above the max depth + if particle.depth + particle_ddepth >= fieldset.max_depth: # noqa + # move half a meter above the max depth + particle_ddepth = fieldset.max_depth - particle.depth - 0.5 # noqa @pytest.mark.parametrize('use_3D', [True, False])