Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jul 29, 2024
1 parent b472555 commit ffc5837
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/stats/group_level/getRFXdir.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@

sub = 'ALL';
if ~isempty(contrastName)
thisNode = opt.model.bm.get_nodes('Name', nodeName);

% TODO make more general than just with group
if all(ismember(lower(thisNode.GroupBy), {'contrast', 'group'})) && ~isempty(thisGroup)
participants = bids.util.tsvread(fullfile(opt.dir.raw, 'participants.tsv'));
groupColumnHdr = opt.model.bm.getGroupColumnHdrFromGroupBy(nodeName, participants);
if ~isempty(groupColumnHdr) && ~isempty(thisGroup)
sub = thisGroup;
end
end
Expand Down

0 comments on commit ffc5837

Please sign in to comment.