From a6754c6158179eaa7ccae3733145bf8ef0194e8b Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Thu, 25 Oct 2018 16:56:57 +0200 Subject: [PATCH] Fixed Numpy tuple indexing warnings --- slicing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slicing.py b/slicing.py index 9024320ac..93211d24f 100644 --- a/slicing.py +++ b/slicing.py @@ -136,7 +136,7 @@ def add_ghost_layers(arr, index_dimensions=0, ghost_layers=1, layout=None): result.fill(0.0) indexing = [slice(ghost_layers, -ghost_layers, None), ] * spatial_dimensions indexing += [slice(None, None, None)] * index_dimensions - result[indexing] = arr + result[tuple(indexing)] = arr return result -- GitLab