Skip to content

Commit 422caa6

Browse files
committed
fixes after testing on visual localizer
1 parent b01eb2e commit 422caa6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

saveEventsFile.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@
8787
duration = logFile(iEvent).duration;
8888
trial_type = logFile(iEvent).trial_type;
8989

90-
if any(isnan([onset trial_type])) || ...
91-
any(isempty([onset trial_type])) || ...
92-
any(strcmp({onset, trial_type}, 'n/a'))
90+
if isnan(onset) || ischar(onset) || any(isempty({onset trial_type})) || ...
91+
strcmp(trial_type, 'n/a')
9392

9493
warning('\nSkipping saving this event.\n onset: %f \n trial_type: %s\n', ...
9594
onset, ...

0 commit comments

Comments
 (0)