Open vzickus opened 5 years ago
Did you ever find a solution for this? Currently trying to work through the same error...
I just figured this out. The error is because of the dtype of the variable 'cells'.
Change:
dataShape = detectCellShape(dataDoG, cells, threshold = 50);
to:
dataShape = detectCellShape(dataDoG, cells.astype(int), threshold = 50);
You may also have to specify cells.astype(int) in other places, depending on your script, but this fixed it for me.
Following the tutorial
File "/home/vzickus/anaconda3/envs/Python27/lib/python2.7/site-packages/ClearMap-0.9.2-py2.7-linux-x86_64.egg/ClearMap/Visualization/Plot.py", line 250, in plotOverlayPoints cimg = overlayPoints(dataSource, pointSource, pointColor = pointColor, x = x, y = y, z = z); File "/home/vzickus/anaconda3/envs/Python27/lib/python2.7/site-packages/ClearMap-0.9.2-py2.7-linux-x86_64.egg/ClearMap/Visualization/Plot.py", line 220, in overlayPoints cimage[p[0], p[1], p[2], :] = pointColor; IndexError: only integers, slices (
:), ellipsis (
...), numpy.newaxis (
None) and integer or boolean arrays are valid indices