index to avoid complaint about scalarizing an array
This commit is contained in:
parent
9d7fd2af6b
commit
5cf4b826c7
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ def voxelize(
|
|||
|
||||
# Recursion case: split along longest side
|
||||
axis = num_planes_remaining.argmax()
|
||||
plane_ind = num_planes_remaining[axis] // 2 + slices[axis, 0]
|
||||
plane_ind = (num_planes_remaining[axis] // 2 + slices[axis, 0])[0]
|
||||
plane_pos = aplanes[axis][plane_ind]
|
||||
|
||||
plane = (numpy.roll([-1, 0, 0], axis), plane_pos)
|
||||
|
|
|
|||
Loading…
Reference in a new issue