Skip to content

Commit

Permalink
Remove timeshift for CFT triggers (that code came from FieldTrip's re…
Browse files Browse the repository at this point in the history
…ad_ctf_trigger)
  • Loading branch information
rcassani committed May 11, 2022
1 parent df9add6 commit dc6ef8f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions toolbox/process/functions/process_evt_read.m
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@
StimChan = StimChan(1:end-3);
end
end
trigshift = fix(sFile.prop.sfreq * 9/1200);

% ===== ASK READ MODE =====
if strcmpi(EventsTrackMode, 'ask')
Expand Down Expand Up @@ -294,8 +293,6 @@
elseif isCtfLow
tracks = double(bitand(uint32(tracks), 2^16-1));
end
% Determine the precise timing of the triggers (from FieldTrip's read_ctf_trigger)
tracks = upflank(1:(end-trigshift)).*tracks((1+trigshift):end);
% Other formats
else
% Old code: Might be useless and/or detrimental to the reading of the events
Expand Down

0 comments on commit dc6ef8f

Please sign in to comment.