[issue39864] IndexError gives wrong axis info

2020-03-05 Thread Ningyi Du
Ningyi Du added the comment: I believe it's a bug. The axis 0 is misleading. However, it is a problem for numpy developers. Thank you for your time. On Thu, Mar 5, 2020, 10:42 AM Peter Otten wrote: > > Peter Otten <__pete...@web.de> added the comment: > > This is not a b

[issue39864] IndexError gives wrong axis info

2020-03-05 Thread Ningyi Du
Ningyi Du added the comment: This is a simple test: test=np.zeros((2,3,4)) print(test[1][3][1]) IndexErrorTraceback (most recent call last) in 1 test=np.zeros((2,3,4)) > 2 print(test[1][3][1]) IndexError: index 3 is out of bounds for axi

[issue39864] IndexError gives wrong axis info

2020-03-05 Thread Ningyi Du
New submission from Ningyi Du : IndexError: index 11 is out of bounds for axis 0 with size 11 The actual error is not with axis 0, but axis 3. error message: 168 if iJ>=9: 169 print(iE,iE0,iEtemp,iJ,li,lf,mlf+lf) --&g