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
The session start time is the reference time for all timestamps in the NWB file. We are using session_start_time from the Bpod output. (The start time of the session in the Bpod data can be accessed from the "Info" struct, with "SessionDate" and "SessionStartTime_UTC" fields.)
Bpod trial start time
We are extracting the trial start times from the Bpod output using the "TrialStartTimestamp" field.
frompymatreaderimportread_matbpod_data=read_mat("raw_Bpod/J076/DataFiles/J076_RWTautowait2_20231212_145250.mat")["SessionData"] # should contain "SessionData" named struct# The trial start times from the Bpod databpod_trial_start_times=bpod_data['TrialStartTimestamp']
The aligned trial start times can be accessed from the processed behavior data using the "Cled" field.
frompymatreaderimportread_matS_struct_data=read_mat("J076_2023-12-12.mat")["S"] # should contain "S" named struct# "Cled" field contains the aligned onset and offset times for each trial [2 x ntrials]center_port_onset_times= [center_port_times[0] forcenter_port_timesinS_struct_data["Cled"]]
center_port_offset_times= [center_port_times[1] forcenter_port_timesinS_struct_data["Cled"]]
Neuropixels Dataset
Data streams
Session start time
The session start time is the reference time for all timestamps in the NWB file. We are using
session_start_time
from the Bpod output. (The start time of the session in the Bpod data can be accessed from the "Info" struct, with "SessionDate" and "SessionStartTime_UTC" fields.)Bpod trial start time
We are extracting the trial start times from the Bpod output using the "TrialStartTimestamp" field.
NIDAQ trial start time
The aligned trial start times can be accessed from the processed behavior data using the
"Cled"
field.Alignment
We are aligning the starting time of the recording and sorting interfaces to the Bpod interface.
We are computing the time shift from the Bpod trial start time to the NIDAQ trial start time.
We are applying this time_shift to the timestamps for the raw recording as:
The text was updated successfully, but these errors were encountered: