diff --git a/nltools/data/brain_data.py b/nltools/data/brain_data.py index 5f8bdd18..c1174020 100644 --- a/nltools/data/brain_data.py +++ b/nltools/data/brain_data.py @@ -114,7 +114,7 @@ def __init__(self, data=None, Y=None, X=None, mask=None, **kwargs): # Load default mask self.mask = nib.load(resolve_mni_path(MNI_Template)["mask"]) # Learn transformation on mask - self.nifti_masker = NiftiMasker(mask_img=self.mask) + self.nifti_masker = NiftiMasker(mask_img=self.mask, **kwargs) if data is not None: if isinstance(data, str) or isinstance(data, Path):