Skip to content

Commit

Permalink
Pass kwargs to Brain_Data nifti masker on init (e.g. for caching)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejolly committed May 30, 2022
1 parent 24d8cc4 commit 6ad1db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nltools/data/brain_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6ad1db6

Please sign in to comment.