Skip to content

Commit 2530bb4

Browse files
committed
fix getData to pass test
1 parent 26af473 commit 2530bb4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

subfun/getData.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@
7878
group(iGroup).subNumber = subjects;
7979

8080
% if subject ID were directly specified by users we take those
81-
elseif strcmp(group(iGroup).name, '') && iscell(opt.subjects{iGroup})
81+
elseif strcmp(group(iGroup).name, '') && iscellstr(opt.subjects)
8282

8383
group(iGroup).subNumber = opt.subjects;
84+
8485
% if group was specified we figure out which subjects to take
8586
elseif ~isempty(opt.subjects{iGroup})
8687

@@ -92,7 +93,7 @@
9293
% count how many subjects in that group
9394
idx = sum(~cellfun(@isempty, strfind(subjects, group(iGroup).name)));
9495
idx = 1:idx;
95-
96+
9697
else
9798

9899
error('Not sure what to do.')

0 commit comments

Comments
 (0)