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

2012-09-10 Thread Anthony Scopatz
On Tue, Sep 11, 2012 at 12:52 AM, Jadhav, Alok < alok.jad...@credit-suisse.com> wrote: > Hi Travis, > > ** ** > > Very Strange. I am on version 1.6.2 L > > What could I be missing. I started using numpy quite recently. Is there a > way to share the data with you? > Hi Alok, Typically, a

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

2012-09-10 Thread Jadhav, Alok
Hi Travis, Very Strange. I am on version 1.6.2 L What could I be missing. I started using numpy quite recently. Is there a way to share the data with you? Regards, Alok Jadhav GAT IT Hong Kong +852 2101 6274 (*852 6274) From: numpy-discussion-boun...@scipy.org [mailto:numpy-discu

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'

[Numpy-discussion] easy way to change part of only unmasked elements value?

2012-09-10 Thread Chao YUE
Dear all numpy users, what's the easy way if I just want to change part of the unmasked array elements into another new value? like an example below: in my real case, I would like to change a subgrid of a masked numpy array to another value, but this grid include both masked and unmasked data. If