Re: [Numpy-discussion] argwhere does not accept py list

2009-07-08 Thread Scott Sinclair
> 2009/7/8 Pierre GM : > > On Jul 8, 2009, at 3:18 AM, Scott Sinclair wrote: > >>> 2009/7/8 Robert Kern : >>> 2009/7/4 Stéfan van der Walt : Thanks, Scott.  This should now be fixed in SVN. >>> >>> You should probably change that to asanyarray() before the masked >>> array crowd gets upset. :-

Re: [Numpy-discussion] argwhere does not accept py list

2009-07-08 Thread Stéfan van der Walt
2009/7/8 Robert Kern : > 2009/7/4 Stéfan van der Walt : >> Thanks, Scott.  This should now be fixed in SVN. > > You should probably change that to asanyarray() before the masked > array crowd gets upset. :-) Thanks, fixed! Stéfan ___ Numpy-discussion ma

Re: [Numpy-discussion] argwhere does not accept py list

2009-07-08 Thread Pierre GM
On Jul 8, 2009, at 3:18 AM, Scott Sinclair wrote: >> 2009/7/8 Robert Kern : >> 2009/7/4 Stéfan van der Walt : >>> Thanks, Scott. This should now be fixed in SVN. >> >> You should probably change that to asanyarray() before the masked >> array crowd gets upset. :-) > > I hadn't thought about that

Re: [Numpy-discussion] argwhere does not accept py list

2009-07-08 Thread Scott Sinclair
> 2009/7/8 Robert Kern : > 2009/7/4 Stéfan van der Walt : >> Thanks, Scott.  This should now be fixed in SVN. > > You should probably change that to asanyarray() before the masked > array crowd gets upset. :-) I hadn't thought about that, but I'm don't think it matters in this case. MaskedArray.no

Re: [Numpy-discussion] argwhere does not accept py list

2009-07-07 Thread Robert Kern
2009/7/4 Stéfan van der Walt : > Thanks, Scott.  This should now be fixed in SVN. You should probably change that to asanyarray() before the masked array crowd gets upset. :-) -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by ou

Re: [Numpy-discussion] argwhere does not accept py list

2009-07-04 Thread Stéfan van der Walt
Thanks, Scott. This should now be fixed in SVN. 2009/7/3 Scott Sinclair : > Index: numpy/core/numeric.py > === > --- numpy/core/numeric.py       (revision 7095) > +++ numpy/core/numeric.py       (working copy) > @@ -535,7 +535,7 @@ >

Re: [Numpy-discussion] argwhere does not accept py list

2009-07-03 Thread Scott Sinclair
>2009/7/3 Sebastian Haase : > Hi, > should this not be accepted: N.argwhere([4,0,2,1,3]) > ? > instead I get > > Traceback (most recent call last): >  File "", line 1, in >  File "./numpy/core/numeric.py", line 510, in argwhere > AttributeError: 'list' object has no attribute 'nonzero' N

[Numpy-discussion] argwhere does not accept py list

2009-07-03 Thread Sebastian Haase
Hi, should this not be accepted: >>> N.argwhere([4,0,2,1,3]) ? instead I get Traceback (most recent call last): File "", line 1, in File "./numpy/core/numeric.py", line 510, in argwhere AttributeError: 'list' object has no attribute 'nonzero' >>> N.argwhere(N.array([4,0,2,1,3])) [[0] [2] [3