Re: [Numpy-discussion] Unexpected behaviour by in place addition of array and masked array

2008-04-24 Thread Pierre GM
Hanno, On Thursday 24 April 2008 05:35:41 Hanno Klemm wrote: > >>> N.__version__ > '1.0.4' OK, you're using the "old" version of masked array. > I tried adding a masked array and a usual array in place and got back > the usual array. Is this expected behaviour? I would have expected to > get a m

[Numpy-discussion] Unexpected behaviour by in place addition of array and masked array

2008-04-24 Thread Hanno Klemm
Hi, I tried adding a masked array and a usual array in place and got back the usual array. Is this expected behaviour? I would have expected to get a masked array back. The below example illustrates what I mean. >>> import numpy as N >>> a = N.zeros((3,3), dtype=float) >>> b = N.ma.MaskedArray