Skip to content

Commit

Permalink
Fixed exception with detailed input
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Alexander committed Dec 5, 2023
1 parent 115e102 commit 36d41ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_functions/bidsFilename.m
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
end

% Now create the filename with required detail
if cfg.detailed
if ~(~isfield(cfg,'detailed') || isempty(cfg.detailed)) && cfg.detailed
fullfile = sprintf('%1$ssub-%2$s_ses-%3$s_task-%4$s_run-%5$s_%6$s%7$s',bids.directory,bids.sub,bids.ses,bids.task,bids.run,cfg.description,cfg.type);
else
fullfile = sprintf('%1$ssub-%2$s_%3$s%4$s',bids.directory,bids.sub,cfg.description,cfg.type);
Expand Down

0 comments on commit 36d41ad

Please sign in to comment.