enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.3k stars 284 forks source link

tvtk_segmentation - IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices #1115

Open ManPython opened 2 years ago

ManPython commented 2 years ago

https://docs.enthought.com/mayavi/mayavi/auto/example_tvtk_segmentation.html#example-tvtk-segmentation

mayavi\tvtk_segmentation.py", line 52, in <module>
    lower_thr = sorted_data[0.2*l]
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices