[New-bugs-announce] [issue39864] IndexError gives wrong axis info

Ningyi Du report at bugs.python.org
Thu Mar 5 10:06:50 EST 2020


New submission from Ningyi Du <ningyidu at gmail.com>:

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)
--> 170                     SS[iEtemp][iJ][li][lf][mlf+lf]= FF(jf,mf,lf,mlf,ji,mi,li,J)*SJ[iCh][jCh]
    171 
    172                 sumSJ1 += np.abs(SJ0[iCh][jCh])**2

IndexError: index 11 is out of bounds for axis 0 with size 11

----------
messages: 363433
nosy: ningyidu
priority: normal
severity: normal
status: open
title: IndexError  gives wrong axis info

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39864>
_______________________________________


More information about the New-bugs-announce mailing list