[Numpy-discussion] Strange behavior in setting masked array values in Numpy 1.1.0

2008-05-31 Thread Tony Yu
Great job getting numpy 1.1.0 out and thanks for including the old API of masked arrays. I've been playing around with some software using numpy 1.0.4 and took a crack at upgrading it to numpy 1.1.0, but I ran into some strange behavior when assigning to slices of a masked array. I made

Re: [Numpy-discussion] Strange behavior in setting masked array values in Numpy 1.1.0

2008-05-31 Thread Matthieu Brucher
Hi, This is to be expected. You are trying to modify and read the same array at the same time, which should never be done. Matthieu 2008/5/31 Tony Yu [EMAIL PROTECTED]: Great job getting numpy 1.1.0 out and thanks for including the old API of masked arrays. I've been playing around with

Re: [Numpy-discussion] Strange behavior in setting masked array values in Numpy 1.1.0

2008-05-31 Thread Tony Yu
On May 31, 2008, at 6:04 PM, Matthieu Brucher wrote: Hi, This is to be expected. You are trying to modify and read the same array at the same time, which should never be done. Thanks, I'll have to keep this in mind next time. So, what's the best way to rearrange a subarray of an array.

Re: [Numpy-discussion] Strange behavior in setting masked array values in Numpy 1.1.0

2008-05-31 Thread Pierre GM
On Saturday 31 May 2008 18:35:32 Tony Yu wrote: On May 31, 2008, at 6:04 PM, Matthieu Brucher wrote: Hi, This is to be expected. You are trying to modify and read the same array at the same time, which should never be done. Thanks, I'll have to keep this in mind next time. And the