Re: [Numpy-discussion] numpy sort is not working

2012-09-11 Thread Jadhav, Alok
[mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Travis Oliphant Sent: Tuesday, September 11, 2012 10:07 PM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] numpy sort is not working I am wondering of this has to do with the size of the array. It looks like the array is sorted

Re: [Numpy-discussion] numpy sort is not working

2012-09-11 Thread Travis Oliphant
I am wondering of this has to do with the size of the array. It looks like the array is sorted --- but in chunks. -- Travis Oliphant (on a mobile) 512-826-7480 On Sep 10, 2012, at 10:46 PM, "Jadhav, Alok" wrote: > > Hi everyone, > > I have a numpy array of dimensions > > >>> allRics.sh

Re: [Numpy-discussion] numpy sort is not working

2012-09-11 Thread Jadhav, Alok
esday, September 11, 2012 2:04 PM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] numpy sort is not working On Tue, Sep 11, 2012 at 12:52 AM, Jadhav, Alok wrote: Hi Travis, Very Strange. I am on version 1.6.2 L What could I be missing. I started using numpy quite

Re: [Numpy-discussion] numpy sort is not working

2012-09-10 Thread Anthony Scopatz
> > Alok Jadhav > > GAT IT Hong Kong > > +852 2101 6274 (*852 6274) > > ** ** > > *From:* numpy-discussion-boun...@scipy.org [mailto: > numpy-discussion-boun...@scipy.org] *On Behalf Of *Travis Oliphant > *Sent:* Tuesday, September 11, 2012 11:58

Re: [Numpy-discussion] numpy sort is not working

2012-09-10 Thread Jadhav, Alok
-discussion-boun...@scipy.org] On Behalf Of Travis Oliphant Sent: Tuesday, September 11, 2012 11:58 AM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] numpy sort is not working Hey Alok, This is worth taking a look. What version of NumPy are you using? It is not

Re: [Numpy-discussion] numpy sort is not working

2012-09-10 Thread Travis Oliphant
Hey Alok, This is worth taking a look. What version of NumPy are you using? It is not related directly to the issue you referenced as that was an endian-ness issue and your data is native-order. Your example seems to work for me (with a simulated case on 1.6.1) Best, -Travis On Sep

[Numpy-discussion] numpy sort is not working

2012-09-10 Thread Jadhav, Alok
Hi everyone, I have a numpy array of dimensions >>> allRics.shape (583760, 1) To sort the array, I set the dtype of the array as follows: allRics.dtype = [('idx', np.float), ('opened', np.float), ('time', np.float),('trdp1',np.float),('trdp0',np.float),('dt',np.float),('value'