John [H2O] wrote:
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'm having trouble slicing 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 could do the following:
Traceback (most recent call last):
File "<string>", line 1, in <string>
ValueError: shape mismatch: objects cannot be broadcast to a single shape
>
It's strange, because I can do this:
>
I thought I could do the following:
>>>i = array(range(140 ,149))
>>>j = array(range(5,2 0))
>>>a = acc[i,j]
>>>j = array(range(5,2 0))
>>>a = acc[i,j]
File "<string>", line 1, in <string>
ValueError: shape mismatch: objects cannot be broadcast to a single shape
>
It's strange, because I can do this:
>
>>>a = acc[140:148,5:19]