Skip to content
Snippets Groups Projects
Commit 7234365b authored by Joseph Weston's avatar Joseph Weston
Browse files

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
No related branches found
No related tags found
No related merge requests found
Pipeline #13172 passed with warnings
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment