Skip to content

Commit

Permalink
Review changes: Simplify in-place replacement of list/array content.
Browse files Browse the repository at this point in the history
  • Loading branch information
pp-mo committed Dec 19, 2024
1 parent 8b56344 commit ae992ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/util/test_equalise_cubes.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _scramble(inputs, rng=95297):
scramble_inds = rng.permutation(n_inputs)
inputs_array = inputs_array[scramble_inds]
# Modify input list **BUT N.B. IN PLACE**
inputs[0:] = inputs_array
inputs[:] = inputs_array
return inputs


Expand Down

0 comments on commit ae992ff

Please sign in to comment.