Skip to content

Commit

Permalink
fix notes issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arnodelorme committed Oct 25, 2021
1 parent 35aacc3 commit 8e29d3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bids_export.m
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ function bids_export(files, varargin)
files(iSubj).notes = cell(1,length(files(iSubj).file));
files(iSubj).notes(:) = { tmpNote };
end
if length(files(iSubj).notes) < length(files(iSubj).file)
files(iSubj).notes{length(files(iSubj).file)} = [];
end
end

% check that no two files have the same session/run and task
Expand Down

0 comments on commit 8e29d3e

Please sign in to comment.