Re: indexing arrays

2008-10-10 Thread Terry Reedy
John [H2O] wrote: I'm having trouble slicing arrays: If these are numpy arrays, as appears, rather that array module arrays, then the numpy list might be a better place. In any case, using 'numpy' would have gotten the attention of someone scanning for posts about numpy. I thought I coul

Re: indexing arrays

2008-10-10 Thread Emily Rodgers
"John [H2O]" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I'm having trouble slicing arrays: > > I thought I could do the following: i = array(range(140,149)) j = array(range(5,20)) a = acc[i,j] > Traceback (most recent call last): > File "", line 1, in > Value