> > Unfortunately if the value is changed to masked, this is not updated
> > in the parent array. This seems very inconsistent. I don't view masked
> > values any different than any other value.
>
> Inconsistent, maybe, useful definitely:
> Masking a view and getting the original masked accordingly
==
##why does the mask need to be copied?
#_mask = self._mask.copy()
#=======
_mask[index] = m
self._mask = _mask
On 11/22/06, Michael Sorich <[EMAIL PROTECTED]> wrote:
> Perhaps an example
3,4,5],[1,2,3,4,5]], mask=nomask)
suba = a[2]
suba[1] = 10
print a
print suba
print type(suba)
--output--
[[1 2 3 4 5]
[1 2 3 4 5]
[1 2 3 4 5]]
[ 1 10 3 4 5]
On 11/22/06, Pierre GM <[EMAIL PROTECTED]> wrote:
>
>
> On Tuesday 21 November 2006 21:11, Michael Sorich wrote:
>
&
I think that the new implementation is making a copy of the data with
indexing a MA. This is different from both ndarray and the existing
numpy ma version.
e.g.
testma = ma.array([[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5]], mask=ma.nomask)
testma2 = testma[1]
testma2[1] = 20
print testma
print testma2