Nov-10-2020, 08:46 PM
(This post was last modified: Nov-10-2020, 08:46 PM by deanhystad.)
Here's a simpler example:
There may be other problems.
import numpy as np hg=np.zeros([13,29]) for i in range(29): for j in range(13): hg[i][j] = 1*13+j
Output:Traceback (most recent call last):
File "...", line 5, in <module>
hg[i][j] = 1*13+j
IndexError: index 13 is out of bounds for axis 0 with size 13
See the problem now? Look at the values for i and the shape of hg.There may be other problems.