Re: [Numpy-discussion] array += masked_array gives a normal array, not masked array

2008-06-01 Thread Pierre GM
On Sunday 01 June 2008 11:22:05 Tony Yu wrote: > array + masked_array > outputs a masked array That's expected: you create a new object from two objects (array and masked_array), the latter has a higher priority than the former, you end up with a masked array > array += masked_array > outputs a

[Numpy-discussion] array += masked_array gives a normal array, not masked array

2008-06-01 Thread Tony Yu
Ok, so you guys shot down my last attempt at finding a bug :). Here's another attempt. array + masked_array outputs a masked array array += masked_array outputs an array. I'm actually not sure if this is a bug (works the same for both the old and new masked arrays), but I thoug