Skip to content

Commit 0d11df8

Browse files
committed
Update config.py
1 parent cd38ecc commit 0d11df8

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

fmriprep/config.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,9 +815,18 @@ def init_spaces(checkpoint=True):
815815
# Ensure user-defined spatial references for outputs are correctly parsed.
816816
# Certain options require normalization to a space not explicitly defined by users.
817817
# These spaces will not be included in the final outputs.
818-
if spaces.get_spaces(cifti=True):
818+
if cifti_output == '91k':
819+
spaces.add(
820+
Reference('fsLR', {'den': '32k', 'volspace': 'MNI152NLin6Asym', 'volres': '2'})
821+
)
822+
elif cifti_output == '170k':
823+
spaces.add(
824+
Reference('fsLR', {'den': '32k', 'volspace': 'MNI152NLin6Asym', 'volres': '1'})
825+
)
826+
827+
if spaces.get_spaces(cifti=(True,)):
819828
# Figure out the surface spaces and volume spaces we need
820-
cifti_spaces = spaces.get_spaces(cifti=True)
829+
cifti_spaces = spaces.get_standard(cifti=(True,))
821830
for cifti_space in cifti_spaces:
822831
surface_space = cifti_space
823832
volume_space = cifti_space

0 commit comments

Comments
 (0)