Skip to content

Commit

Permalink
fix issue with sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
arno committed Apr 2, 2019
1 parent f747390 commit a1c21e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pop_importbids.m
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@
% find folder containing eeg
if exist(fullfile(parentSubjectFolder, 'eeg'))
subjectFolder = { fullfile(parentSubjectFolder, 'eeg') };
subjectFolderOut = { fullfile(outputSubjectFolder, 'eeg') };
else
subFolders = dir(fullfile(parentSubjectFolder, 'ses*'));
subjectFolder = {};
subjectFolderOut = {};

for iFold = 1:length(subFolders)
subjectFolder{ iFold} = fullfile(parentSubjectFolder, subFolders(iFold).name, 'eeg');
Expand Down

0 comments on commit a1c21e2

Please sign in to comment.