Re: [Numpy-discussion] Annoyance of memap rray withmultiprocessing.Pool.applay_async

2010-04-04 Thread Robert Kern
On Sat, Apr 3, 2010 at 22:35, Nadav Horesh wrote: > Got it, thank you. > But why, nevertheless, the results are correct although the pickling is > impossible? Rather, I meant that they don't pickle correctly. They use ndarray's pickling, which will copy the data, and then reconstruct an ndarray

Re: [Numpy-discussion] Resending: List of indices

2010-04-04 Thread josef . pktd
On Sun, Apr 4, 2010 at 10:05 AM, Shailendra wrote: > On Fri, Apr 2, 2010 at 12:34 PM, Shailendra > wrote: >> Hi All, >> > x=arange(10) > indices=[(1,),(2,)] > x[indices] >> Traceback (most recent call last): >>  File "", line 1, in >> IndexError: unsupported iterator index You are

[Numpy-discussion] Resending: List of indices

2010-04-04 Thread Shailendra
On Fri, Apr 2, 2010 at 12:34 PM, Shailendra wrote: > Hi All, > x=arange(10) indices=[(1,),(2,)] x[indices] > Traceback (most recent call last): >  File "", line 1, in > IndexError: unsupported iterator index > > > But following works. x=x.reshape(5,2) x > array([[0, 1], >