-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset-times: segment must have either time vector or sampling frequency #3380
Conversation
I don't really touch the time vector stuff (I work in sample for everything). Should there be some additional testing with the time vector stuff to prevent this? Or are these some one off issues with the latest changes? |
The problem arose in a preprocessing step. Basically a segment must always have either a time vector or a sampling frequency, otherwise instantiation fails |
I think similar to #3324, if a Out of interest, in what cases can a segment have a time vector but no sampling frequency set? is the sampling frequency not always propagated from parent recording to segment? |
I think that if we set the time vector, then the
The segment works in samples, so time information can be regarded as metadata. The |
Cool thanks I did not know that about sampling frequency! I think if a time vector has been explicitly set by the user then that is the case. But it is possible that
|
I see, got it! So then the |
I think the
Maybe there is a more elegant way to do this, I'm also not sure how the I am wondering a bit more about the |
Got it! Then the As for the |
@alejoe91 @samuelgarcia I think this current implementation will error out if |
ouch! I'll take a look! |
Fixes a bug in reset times that causes issues downstream, since rec segments must have either a
sampling_frequency
or atime_vector