Skip to content

Commit

Permalink
Fix kdtree type error
Browse files Browse the repository at this point in the history
  • Loading branch information
frheault committed Feb 28, 2024
1 parent 33ce72f commit 8593c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scilpy/tractanalysis/reproducibility_measures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8593c92

Please sign in to comment.