I am working with a structured array defined in this way:
scores = np.empty((num_of_imgs, 4),
dtype=[('id', 'u4'), ('bestT', 'u8'), ('bestR', 'f8'), ('bestP', 'f8')])
then in a for loop I populate it:
scores[i] = [id, bestT, bestR, bestP]
where all the vars inside the list are numpy arrays with shape (1,). However this line of code throws the aforementioned error. Why?