Skip to content

Commit 39e72b1

Browse files
committed
Add # noqa flag for ruff fix
1 parent 05808ea commit 39e72b1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/test_kernels.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ def make_standard_particleset(fieldset, settings):
3535
def checkBelowDataDepth(particle, fieldset, time):
3636
# The vertical mixing kernel can push particles below the test dataset depth, throwing an
3737
# out of bounds error. This kernel will keep particles above the max depth.
38-
if particle.depth + particle_ddepth >= fieldset.max_depth:
39-
particle_ddepth = fieldset.max_depth - particle.depth - 0.5 # move half a meter above the max depth
38+
if particle.depth + particle_ddepth >= fieldset.max_depth: # noqa
39+
# move half a meter above the max depth
40+
particle_ddepth = fieldset.max_depth - particle.depth - 0.5 # noqa
4041

4142

4243
@pytest.mark.parametrize('use_3D', [True, False])

0 commit comments

Comments
 (0)