Skip to content

Commit c442383

Browse files
committed
fix: grab first mask for tcompcor
1 parent af1fd73 commit c442383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/algorithms/confounds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def _run_interface(self, runtime):
471471
.format(self.inputs.realigned_file, imgseries.ndim, imgseries.shape))
472472

473473
if isdefined(self.inputs.mask_file):
474-
in_mask_data = nb.load(self.inputs.mask_file, mmap=NUMPY_MMAP).get_data()
474+
in_mask_data = nb.load(self.inputs.mask_file[0], mmap=NUMPY_MMAP).get_data()
475475
imgseries = imgseries[in_mask_data != 0, :]
476476

477477
# From the paper:

0 commit comments

Comments
 (0)