the data is a list of None's in that case which makes it work otherwise it would be an empty list which would not correspond to the dimension of the timesteps