You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a question: how can one easily create selection of a time fragment along a recording.
For the recording you can make a call to select_channels and time_slice, to get a chunk of the recording.
However when trying to extract the affiliated spike times to this time_slice, I find I'm having to play with the sampling frequency (given that I don't have a time vector).
Am I missing some elegant way of doing this?
The text was updated successfully, but these errors were encountered:
I always just do this myself by converting to samples from time (as you said using the sampling_frequency), but maybe @alejoe91 or @samuelgarcia know of a machinery in spikeinterface to easily do this (in which case I might switch myself :) )
Hello! There's a few ways to look at spike trains: to_spike_vector, get_unit_spike_train and I recently found spike_vector_to_spike_train(!). Of these, the get_unit_spike_train method has a return_times parameter. So if you have a sorting object called sort you can do something like
Another option is to use the sorting.frame_slice() to get a new sorting object. I think we could add a time_slice, which automatically does the conversion/checks the registered recording for timestamps.
Just a question: how can one easily create selection of a time fragment along a recording.
For the recording you can make a call to select_channels and time_slice, to get a chunk of the recording.
However when trying to extract the affiliated spike times to this time_slice, I find I'm having to play with the sampling frequency (given that I don't have a time vector).
Am I missing some elegant way of doing this?
The text was updated successfully, but these errors were encountered: