Hi,

I just noticed this and found it surprising:

In [8]: from numpy import ma

In [9]: a = ma.array([1,2,3,4],mask=[False,False,True,False],fill_value=0)

In [10]: a
Out[10]:
masked_array(data = [1 2 -- 4],
       mask = [False False  True False],
       fill_value=0)


In [11]: a[2]
Out[11]:
masked_array(data = --,
       mask = True,
       fill_value=1e+20)

In [12]: np.__version__
Out[12]: '1.1.0'

Is there a reason that the fill_value isn't inherited from the parent array?

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to