Skip to content
Snippets Groups Projects
Commit 0500fd57 authored by Martin Bauer's avatar Martin Bauer
Browse files

Removed deprecated numpy indexing

parent 2956a1ab
Branches
Tags
No related merge requests found
......@@ -123,7 +123,7 @@ def remove_ghost_layers(arr, index_dimensions=0, ghost_layers=1):
spatial_dimensions = dimensions - index_dimensions
indexing = [slice(ghost_layers, -ghost_layers, None), ] * spatial_dimensions
indexing += [slice(None, None, None)] * index_dimensions
return arr[indexing]
return arr[tuple(indexing)]
def add_ghost_layers(arr, index_dimensions=0, ghost_layers=1, layout=None):
......
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