Skip to content

Commit f6d5ef2

Browse files
committed
use sample when avaialble
1 parent 70a3034 commit f6d5ef2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bids_importeventfile.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
bids.eventInfo = {'onset' 'latency'; 'duration' 'duration'}; % order in events.tsv: onset duration
7070
if ~isempty(indSample)
7171
events(end).sample = eventData{iEvent,indSample} + 1;
72+
events(end).latency = eventData{iEvent,indSample} + 1;
7273
bids.eventInfo(end+1,:) = {'sample' 'sample'};
7374
end
7475
for iField = 1:length(eventData(1,:))

0 commit comments

Comments
 (0)