python index 0 is out of bounds for axis 0 with size 0

python报错:
mutantPops[i+j6] = np.clip(mutantPops[i+j6], model.P[i][0], model.P[i][1])
IndexError: index 0 is out of bounds for axis 0 with size 0

img

索引越界了
先打印mutantPops和model.P看看到底谁size是0