I have two indexing arrays.
elim=range(130,240)
tlim=range(0,610)
The array to be indexed, I, has originally shape of (299, 3800)
When I try to index it as follow
I[elim,tlim]
I got the following error message.
shape mismatch: indexing arrays could not be broadcast together with shapes (110,) (610,)
I didn't expect such errors. Could someone explain what is happening here?
Thanks!
my_array[130:240, :610](you shouldn't overwrite the std. lib'slenfunction)broadcastagainst each other. A (n,) array will work with a (n,) producing (n,) result. A (n,1) will work with a (1,m) to produce a (n,m) result. Same broadcasting rules as when adding or multiplying arrays.