[Numpy-discussion] Problem with set_fill_value for masked structured array
Thomas Robitaille
thomas.robitaille@gmail....
Sun Dec 13 17:18:18 CST 2009
Hi,
The following code doesn't seem to work:
import numpy.ma as ma
t = ma.array(zip([1,2,3],[4,5,6]),dtype=[('a',int),('b',int)])
print repr(t['a'])
t['a'].set_fill_value(10)
print repr(t['a'])
As the output is
masked_array(data = [1 2 3],
mask = [False False False],
fill_value = 999999)
masked_array(data = [1 2 3],
mask = [False False False],
fill_value = 999999)
(and no exception is raised)
Am I doing something wrong?
Thanks in advance for any help,
Thomas
More information about the NumPy-Discussion
mailing list