[Numpy-discussion] .max(0) on reshaped array returns inconsistent results.

Thouis Jones thouis.jones at curie.fr
Fri May 25 08:17:42 EDT 2012

On Fri, May 25, 2012 at 2:07 PM, Thouis Jones <thouis.jones at curie.fr> wrote:
> I don't seem to be able to reproduce with just a.max(0) or
> np.array(a.max(0), np.float), but since it seems to be very unstable
> to other changes in the code, I'll keep trying to find out if I can
> make those simpler versions crash.

By the way, the strange phrasing comes from these lines in histogramdd():
            smin = atleast_1d(array(sample.min(0), float))
            smax = atleast_1d(array(sample.max(0), float))

Which is where I encountered the bug in the numpy tests.

Ray Jones

More information about the NumPy-Discussion mailing list