Skip to content

Commit 58ea890

Browse files
committed
FIX: Floating point indices are deprecated
1 parent 4102386 commit 58ea890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipy/labs/viz_tools/edge_detect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _fast_abs_percentile(map, percentile=80):
3030
return quantile(map, .01*percentile)
3131
map.sort()
3232
nb = map.size
33-
return map[.01*percentile*nb]
33+
return map[int(.01*percentile*nb)]
3434

3535

3636
def _orientation_kernel(t):

0 commit comments

Comments
 (0)