Re: [Numpy-discussion] behavior of masked arrays

2008-03-09 Thread Pierre GM
On Sunday 09 March 2008 13:35:27 Giorgio F. Gilestro wrote: > Pierre, I did some adjusting to some of the functions in > scipy.stats.stats and more I am planning to do - not all but those I'll > need I am afraid. Is it ok if I send you what I'll have so that you have > a look at it (at your conven

Re: [Numpy-discussion] behavior of masked arrays

2008-03-09 Thread Giorgio F. Gilestro
Ok generic functions and a ma.stats specific module sounds very good to me. Hope is going to happen for ma are a great plus. Pierre, I did some adjusting to some of the functions in scipy.stats.stats and more I am planning to do - not all but those I'll need I am afraid. Is it ok if I send you

Re: [Numpy-discussion] behavior of masked arrays

2008-03-07 Thread Pierre GM
On Friday 07 March 2008 12:25:13 Giorgio F. Gilestro wrote: > Ok, I see, thank you Pierre. > I thought scipy.stats would have been a widely used extension so I > didn't really consider the trivial possibility that simply wasn't > compatible with ma yet. Partly my fault here, as I should have porte

Re: [Numpy-discussion] behavior of masked arrays

2008-03-07 Thread Travis E. Oliphant
Giorgio F. Gilestro wrote: > Hi Everybody, > I have some arrays that sometimes need to have some of their values > masked away or, simply said, not considered during manipulation. > I tried to fulfill my purposes using both NaNs and MaskedArray but > neither of them really helped completely. > >

Re: [Numpy-discussion] behavior of masked arrays

2008-03-07 Thread Giorgio F. Gilestro
Ok, I see, thank you Pierre. I thought scipy.stats would have been a widely used extension so I didn't really consider the trivial possibility that simply wasn't compatible with ma yet. I had a quick look at the code and it really seems that ma handling can be achieved by replacing np.asarray wi

Re: [Numpy-discussion] behavior of masked arrays

2008-03-07 Thread Pierre GM
On Friday 07 March 2008 09:56:59 Giorgio F. Gilestro wrote: > Hi Everybody, > My understanding is that only a few functions will be able to properly > use MA during execution. Is this correct or am I missing something here? Giogio, You're right: there's no full support of masked arrays in Scipy y

[Numpy-discussion] behavior of masked arrays

2008-03-07 Thread Giorgio F. Gilestro
Hi Everybody, I have some arrays that sometimes need to have some of their values masked away or, simply said, not considered during manipulation. I tried to fulfill my purposes using both NaNs and MaskedArray but neither of them really helped completely. Let's give an example: from numpy impor