Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into bids_model
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jul 10, 2024
2 parents 5c8461f + 97ef552 commit 227e04f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion +bids/layout.m
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function handle_invalid_input(ME, root)
bids.internal.is_octave
if ischar(root)
msg = sprintf(['First input argument must be an existing directory.'...
'\nGot: ''%s.'''], root);
'\nGot: "%s".'], root);
bids.internal.error_handling(mfilename(), 'InvalidInput', ...
msg, false);
end
Expand Down Expand Up @@ -395,6 +395,12 @@ function handle_invalid_input(ME, root)
% so the parsing is unconstrained
for iModality = 1:numel(modalities)

% when we go schemaless session level folder
% may get indexed as modality
if bids.internal.starts_with(modalities{iModality}, 'ses-')
continue
end

if isfield(filter, 'modality') && ...
~ismember(modalities{iModality}, filter.modality)
continue
Expand Down

0 comments on commit 227e04f

Please sign in to comment.