Skip to content

Commit 214d316

Browse files
committed
fixed data casting
1 parent 937173a commit 214d316

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
@@ -464,7 +464,7 @@ def _run_interface(self, runtime):
464464
mask_data = np.zeros_like(in_mask_data)
465465
mask_data[in_mask_data != 0] = mask
466466
else:
467-
mask_data = mask
467+
mask_data = mask.astype(int)
468468

469469
# save mask
470470
mask_file = os.path.abspath('mask.nii')

0 commit comments

Comments
 (0)