[NumPy-Tickets] [NumPy] #2029: Should not allow views of NA-masked arrays which change the array size
NumPy Trac
numpy-tickets@scipy....
Tue Jan 24 19:00:26 CST 2012
#2029: Should not allow views of NA-masked arrays which change the array size
------------------------+---------------------------------------------------
Reporter: mwiebe | Owner: somebody
Type: defect | Status: new
Priority: high | Milestone: 1.7.0
Component: numpy.core | Version: devel
Keywords: |
------------------------+---------------------------------------------------
Chuck posted an example:
{{{
Looks like views of masked arrays have other problems:
In [13]: a = ones(3, int16, maskna=1)
In [14]: a.view(int8)
Out[14]: array([1, 0, 1, NA, 1, NA], dtype=int8)
}}}
This looks like a serious bug to me, to avoid memory corruption issues it
should raise an exception.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2029>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list