Open ehennestad opened 1 month ago
The error occurs because some of the rows in timeseries_index
of the intervals_trials
are empty, i.e does not point to any timeseries.
In MATLAB, it is possible to use empty indices, and this could be implemented for DataStub
as well.
e.g.
a = struct
a =
struct with no fields.
K>> a([])
ans =
0×0 empty struct array with no fields.
@bendichter @lawrence-mbf I added a proposed fix and it works in the specific case where this error happens. It is not a very general fix, and there may be better ways to solve this?
What happened?
I ran the convertTrials tutorial (branch:
515-fix-convert-trials-tutorial
) and tried to run the following:Steps to Reproduce
Error Message
Operating System
macOS
Matlab Version
R2023b
Code of Conduct