Re: [Numpy-discussion] Slice assignment and overlapping views (was: Strange behavior in setting masked array values in Numpy 1.1.0)

2008-06-01 Thread Anne Archibald
2008/5/31 Pauli Virtanen [EMAIL PROTECTED]: The reason for the strange behavior of slice assignment is that when the left and right sides in a slice assignment are overlapping views of the same array, the result is currently effectively undefined. Same is true for ndarrays: import numpy a

Re: [Numpy-discussion] Slice assignment and overlapping views (was: Strange behavior in setting masked array values in Numpy 1.1.0)

2008-06-01 Thread Charles R Harris
On Sun, Jun 1, 2008 at 1:37 AM, Anne Archibald [EMAIL PROTECTED] wrote: 2008/5/31 Pauli Virtanen [EMAIL PROTECTED]: The reason for the strange behavior of slice assignment is that when the left and right sides in a slice assignment are overlapping views of the same array, the result is

Re: [Numpy-discussion] Slice assignment and overlapping views (was: Strange behavior in setting masked array values in Numpy 1.1.0)

2008-05-31 Thread Pauli Virtanen
la, 2008-05-31 kello 17:56 -0400, Tony Yu kirjoitti: [clip] 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. [clip] In [1]: import numpy In [2]:

Re: [Numpy-discussion] Slice assignment and overlapping views (was: Strange behavior in setting masked array values in Numpy 1.1.0)

2008-05-31 Thread Keith Goodman
On Sat, May 31, 2008 at 3:09 PM, Pauli Virtanen [EMAIL PROTECTED] wrote: The reason for the strange behavior of slice assignment is that when the left and right sides in a slice assignment are overlapping views of the same array, the result is currently effectively undefined. Same is true for