Commit 7234365b authored by Joseph Weston's avatar Joseph Weston

make multidimensional slice into a tuple, rather than a list

This was fixed on stable, but due to interim changes and a badly
solved merge conflict, the fix was not applied to master.
parent bdf8da70
Pipeline #13393 passed with stages
in 19 minutes and 37 seconds
......@@ -1668,7 +1668,7 @@ def _interpolate_field(dim, elements, discrete_field, bbox, width,
# Zero volume or zero field: nothing to do.
continue
field_slice = [slice(*slices[i, d]) for d in range(dim)]
field_slice = tuple([slice(*slices[i, d]) for d in range(dim)])
# Coordinates of the grid points that are within range of the current
# hopping.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment