From f9e91c5ac3aff90b222fda34b9bad62c1500a591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20N=C3=B6the?= Date: Wed, 12 Dec 2018 10:10:49 +0100 Subject: [PATCH] Use sparse neighbor matrix (#826) --- ctapipe/image/cleaning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctapipe/image/cleaning.py b/ctapipe/image/cleaning.py index 61004e2c80b..0b3187ba980 100644 --- a/ctapipe/image/cleaning.py +++ b/ctapipe/image/cleaning.py @@ -118,7 +118,7 @@ def number_of_islands(geom, mask): Entries range from 0 (not in the pixel mask) to num_islands. """ # compress sparse neighbor matrix - neighbor_matrix_compressed = geom.neighbor_matrix[mask][:, mask] + neighbor_matrix_compressed = geom.neighbor_matrix_sparse[mask][:, mask] # pixels in no cluster have label == 0 island_labels = np.zeros(geom.n_pixels)