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
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
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],
>