Re: [Numpy-discussion] min bug

2009-11-17 Thread Neil
Alan McIntyre gmail.com> writes: > > On Mon, Nov 16, 2009 at 11:34 PM, "V. Armando Solé" esrf.fr> wrote: > > Sebastian Berg wrote: > >> Known issue, I think someone posted about it a while ago too. The numpy > >> min is array aware, and it expects an array. The second argument is the > >> axis,

Re: [Numpy-discussion] min bug

2009-11-16 Thread Alan McIntyre
On Mon, Nov 16, 2009 at 11:34 PM, "V. Armando Solé" wrote: > Sebastian Berg wrote: >> Known issue, I think someone posted about it a while ago too. The numpy >> min is array aware, and it expects an array. The second argument is the >> axis, which in the case of a single number doesn't matter. > >

Re: [Numpy-discussion] min bug

2009-11-16 Thread V. Armando Solé
Sebastian Berg wrote: > Known issue, I think someone posted about it a while ago too. The numpy > min is array aware, and it expects an array. The second argument is the > axis, which in the case of a single number doesn't matter. > > On Tue, 2009-11-17 at 07:07 +, Chris wrote: > >> I'm pret

Re: [Numpy-discussion] min bug

2009-11-16 Thread Alan McIntyre
On Mon, Nov 16, 2009 at 11:07 PM, Chris wrote: > I'm pretty sure this shouldn't happen: > > In [1]: from numpy import min > > In [2]: min(5000, 4) > Out[2]: 5000 The way you're calling it is working like this: min((5000,) , axis=4) so you'd need to do this instead: min((5000,4)) _

Re: [Numpy-discussion] min bug

2009-11-16 Thread Sebastian Berg
Known issue, I think someone posted about it a while ago too. The numpy min is array aware, and it expects an array. The second argument is the axis, which in the case of a single number doesn't matter. On Tue, 2009-11-17 at 07:07 +, Chris wrote: > I'm pretty sure this shouldn't happen: > > I

[Numpy-discussion] min bug

2009-11-16 Thread Chris
I'm pretty sure this shouldn't happen: In [1]: from numpy import min In [2]: min(5000, 4) Out[2]: 5000 ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion