Open lepmik opened 1 month ago
No that's correct. It uses the actual open ephys timestamps, which are not zeroed ;)
We need to zero timestamps for both tracking and spike times, for spike times its essential to subtract the actual start time
@lepmik you can use the nwbfile.session_start_time
. All times
in the NWB file (units, tracking, trials) are relative to this start time
nwbfile.session_start_time is a datetime, using the .timestamp() seems to give wildly wrong times. Can you please provide the right format to subtract the session_start_time from the times obtained from spikeinterface?
I see. So the session_start_time
is taken from the action.datetime
..
Then you should use the starting time of nwbfile["acquisition/EelctricalSeries"].starting_time
If you have the spikeinterface Recording, you can do: recording.get_times()[0]