Skip to content

Commit

Permalink
Add # noqa flag for ruff fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldenes committed Dec 5, 2024
1 parent 05808ea commit 39e72b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 39e72b1

Please sign in to comment.