does testx need to be a list, grid[10 * np.arange(6)] will create an array