Closed olgadoronina closed 6 years ago
@olgadoronina - thanks for the bug report! Indeed this is an oversight - basically I think we should add a check somewhere here:
https://github.com/astrofrog/fast-histogram/blob/master/fast_histogram/histogram.py#L51
that if x.ndim
is greater than 1, we should do x.ravel()
.
I'm going to use your package because it is exactly what I need (I just need to add normalization). I found out that
histogram1d()
works incorrectly with 3d np.arrays. Here is an example of my test: