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

make multidimensional slice into a tuple, rather than a list

In the future numpy will not allow multidimensional slices that
are specified as sequences other than tuples.

Closes #210.
parent 173a8615
Branches
No related tags found
No related merge requests found
Pipeline #11237 passed with warnings
......@@ -1943,7 +1943,7 @@ def interpolate_current(syst, current, relwidth=None, abswidth=None, n=9):
# Zero volume: 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.
Please register or to comment