Closed shijiegu closed 2 years ago
Upon digging deeper, I realized the issue is that the position timestamps have duplicates. This creates a mismatch between the actual data shape and functions that return the datashape. In this case of the position timestamp manager, which inherits timestamps manager, the shape() function which nwb builder uses to initialize the empty array may call this function defined in timestamps manager.
def _get_data_shape(self, dataset_num):
return np.shape(self.read_timestamps_ids(dataset_num))[0]
Yet in the position timestamp manager's function, which is retrieve_real_timestamps
to return the actual data returns a shape different from the read_timestamps_ids()
in the case of PTP data.
The issue is resolved by a bug fix by Eric.