Hi Pierre,
Thanks for the answer, I'm ccing cdat's discussion list.
It makes sense, that's also the way we develop things here NEVER assume
what the user is going to do with the data BUT give the user the
necessary tools to do what you're assuming he/she wants to do (as simple
as possible)
Th
Oh, I guess this one's for me...
On Thursday 01 January 1970 04:21:03 Charles Doutriaux wrote:
> Basically it was suggested to automarically mask NaN (and Inf ?) when
> creating ma.
> I'm sure you already thought of this on this list and was curious to
> know why you decided not to do it.
Becaus
Charles Doutriaux wrote:
> I mean not having to it myself.
> data is a numpy array with NaN in it
> masked_data = numpy.ma.array(data)
> returns a masked array with a mask where NaN were in data
Checking for nans is an expensive operation, so it makes sense to make
it optional rather than impose
I mean not having to it myself.
data is a numpy array with NaN in it
masked_data = numpy.ma.array(data)
returns a masked array with a mask where NaN were in data
C.
Bruce Southey wrote:
> Charles Doutriaux wrote:
>
>> Hi Bruce,
>>
>> Thx for the reply, we're aware of this, basically the questi
Charles Doutriaux wrote:
> Hi Bruce,
>
> Thx for the reply, we're aware of this, basically the question was why
> not mask NaN automatically when creating a nump.ma array?
>
> C.
>
> Bruce Southey wrote:
>
>> Charles Doutriaux wrote:
>>
>>
>>> Hi Stephane,
>>>
>>> This is a good suggest
Hi Bruce,
Thx for the reply, we're aware of this, basically the question was why
not mask NaN automatically when creating a nump.ma array?
C.
Bruce Southey wrote:
> Charles Doutriaux wrote:
>
>> Hi Stephane,
>>
>> This is a good suggestion, I'm ccing the numpy list on this. Because I'm
>> w
Hi All,
I'm sending a copy of this reply here because i think we could get some
good answer.
Basically it was suggested to automarically mask NaN (and Inf ?) when
creating ma.
I'm sure you already thought of this on this list and was curious to
know why you decided not to do it.
Just so I ca
Charles Doutriaux wrote:
> Hi Stephane,
>
> This is a good suggestion, I'm ccing the numpy list on this. Because I'm
> wondering if it wouldn't be a better fit to do it directly at the
> numpy.ma level.
>
> I'm sure they already thought about this (and 'inf' values as well) and
> if they don't d
Hi Stephane,
This is a good suggestion, I'm ccing the numpy list on this. Because I'm
wondering if it wouldn't be a better fit to do it directly at the
numpy.ma level.
I'm sure they already thought about this (and 'inf' values as well) and
if they don't do it , there's probably some good reaso