You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
maybe i'm doing something utterly wrong here-- but if i use bincount instead of binwidth, i get an error. it seems to stem from numpy, the code in imageoperations.py reads:
but at least in the latest numpy lib numpy.histogram gives back a tuple with the transformed values and the binedges-- so i get an error of the form "setting an array element with a sequence."
when modifying the above line to _, binEdges = numpy.histogram(parameterMatrix[parameterMatrixCoordinates], bincount)
the code seems to run without an error (and hopefully work as intended).
is it just my peculiar setup or is this a bug?
The text was updated successfully, but these errors were encountered:
aydindemircioglu
changed the title
Using bincounts?
Using bincounts gives an exception: "setting an array element with a sequence"?
Jul 18, 2018
maybe i'm doing something utterly wrong here-- but if i use bincount instead of binwidth, i get an error. it seems to stem from numpy, the code in imageoperations.py reads:
but at least in the latest numpy lib numpy.histogram gives back a tuple with the transformed values and the binedges-- so i get an error of the form "setting an array element with a sequence."
when modifying the above line to
_, binEdges = numpy.histogram(parameterMatrix[parameterMatrixCoordinates], bincount)
the code seems to run without an error (and hopefully work as intended).
is it just my peculiar setup or is this a bug?
The text was updated successfully, but these errors were encountered: