Skip to content

Commit c761ebb

Browse files
committed
update bidsCopyRawFolder to use later version of bids matlab fileparsing
1 parent b238b12 commit c761ebb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/workflows/bidsCopyRawFolder.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,9 @@ function unzipFiles(derivativesDir, deleteZippedNii, opt)
252252

253253
% for bold, physio and stim files, we only unzip the files of the task of
254254
% interest
255-
if any(strcmp(fragments.type, {'bold', 'stim'})) && ...
256-
isfield(fragments, 'task') && strcmp(fragments.task, opt.taskName) %#ok<PFBNS>
255+
if any(strcmp(fragments.suffix, {'bold', 'stim'})) && ...
256+
isfield(fragments.entities, 'task') && ...
257+
strcmp(fragments.entities.task, opt.taskName) %#ok<PFBNS>
257258

258259
% load the nifti image and saves the functional data as unzipped nii
259260
n = load_untouch_nii(file);

0 commit comments

Comments
 (0)