[NumPy-Tickets] [NumPy] #1332: set_fill_value does not work properly for masked structured array
NumPy Trac
numpy-tickets@scipy....
Sun Feb 7 14:34:13 CST 2010
#1332: set_fill_value does not work properly for masked structured array
-------------------------+--------------------------------------------------
Reporter: robitaille | Owner: pierregm
Type: defect | Status: reopened
Priority: high | Milestone:
Component: numpy.ma | Version: devel
Resolution: | Keywords:
-------------------------+--------------------------------------------------
Comment(by robitaille):
The Numpy test suite returns
{{{
OK (KNOWNFAIL=5, SKIP=1)
}}}
Where the skipped test is to do with LAPACK. So it looks like the tests
run fine. To make sure I'm using the right revision, I ran:
{{{
import numpy as np
import numpy.ma as ma
print np.__version__
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'])
}}}
and I get the following output
{{{
1.5.0.dev8088
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)
}}}
I also ran svn diff inside the numpy directory to check that there are no
local modifications. I'm using Python 2.6 in 64-bit on MacOS 10.6.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1332#comment:6>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list