From 8593c925f5ec881cd581f7b7296bf5f827017e20 Mon Sep 17 00:00:00 2001 From: frheault Date: Wed, 28 Feb 2024 08:46:28 -0500 Subject: [PATCH] Fix kdtree type error --- scilpy/tractanalysis/reproducibility_measures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scilpy/tractanalysis/reproducibility_measures.py b/scilpy/tractanalysis/reproducibility_measures.py index e80cc9d0c..5797d2afb 100755 --- a/scilpy/tractanalysis/reproducibility_measures.py +++ b/scilpy/tractanalysis/reproducibility_measures.py @@ -122,7 +122,7 @@ def approximate_surface_node(roi): """ ind = np.argwhere(roi > 0) tree = cKDTree(ind) - neighbors = np.sum(7 - tree.query_ball_point(ind, r=1.0)) + neighbors = np.sum(7 - len(tree.query_ball_point(ind, r=1.0))) count = [len(neighbor) for neighbor in neighbors] return count