Skip to content

Commit

Permalink
index modality at same level as sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Mar 15, 2024
1 parent ebbee38 commit 2b48b82
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions +bids/layout.m
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,15 @@

end

if numel(sessions) > 1
new_subject = parse_subject(BIDS.pth, subjects{iSub}, '', ...
schema, filter, tolerant, verbose);
[BIDS.subjects, new_subject] = bids.internal.match_structure_fields(BIDS.subjects, ...
new_subject);
% TODO: this can be added to "match_structure_fields"
BIDS.subjects(end + 1) = new_subject;
end

if verbose
fprintf(1, ']\n');
end
Expand Down

0 comments on commit 2b48b82

Please sign in to comment.