[Numpy-discussion] Questions about masked arrays

Pierre GM pgmdevlist@gmail....
Tue Oct 6 19:38:23 CDT 2009


On Oct 6, 2009, at 6:57 PM, Gökhan Sever wrote:
> Seeing a different filling value is causing confusion. Both for  
> myself, and when I try to demonstrate the usage of masked array to  
> other people.

Fair enough. I must admit that `fill_value` is a vestige from the  
previous implementation (talking pre 1.2 here), that is no longer  
really needed (cf below for more details).

> Also say, if I want to replace that one element back to its original  
> state will it use fill_value as 1e+20 or 999999.9999?

What do you mean by 'replace back to its original state' ? Using  
`filled`, you mean ?

> > 2-) What is wrong with the arccos calculation? Should not that
> > result the same as with cos(d) result?
>
> I first tested on 1.3.0, and later on my laptop using 1.4dev version  
> which is about an old month built.
>
> Once again the results for each arc... function

Er, I assume it's np.arccos ?
Anyway, I'm puzzled. Works like a charm here (r7438 for numpy.ma).  
Could it be that something went wrng with some ufuncs ? I didn't touch  
ma since 09/08 (thanks, svn history), so I don't think it comes from  
here... Would you mind trying a more recent svn version ?




More information about the NumPy-Discussion mailing list