I have an array already initialized to be a 3x6 array called self.ascii
. I am trying alter a 3x3 block of this array at a time, using the code:
for x in range(3):
for y in range(3):
# currY and currX represent the bottom left corner of the 3x3 square I am tyring to alter
self.ascii[y+currY][x+currX] = arr[y][x] # yes I know the x and y values are backwards between the arrays
However I keep getting the error, in GNURadio-Companion list index out of range
--before I even try to run it. I know that the indexes here do not leave the range of the list.
Question: Why does python check this before running, and is there a different way I should be loading these 3x3 arrays