Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Aug 6, 2024
1 parent cd38ecc commit 0d11df8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions fmriprep/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,9 +815,18 @@ def init_spaces(checkpoint=True):
# Ensure user-defined spatial references for outputs are correctly parsed.
# Certain options require normalization to a space not explicitly defined by users.
# These spaces will not be included in the final outputs.
if spaces.get_spaces(cifti=True):
if cifti_output == '91k':
spaces.add(
Reference('fsLR', {'den': '32k', 'volspace': 'MNI152NLin6Asym', 'volres': '2'})
)
elif cifti_output == '170k':
spaces.add(
Reference('fsLR', {'den': '32k', 'volspace': 'MNI152NLin6Asym', 'volres': '1'})
)

if spaces.get_spaces(cifti=(True,)):
# Figure out the surface spaces and volume spaces we need
cifti_spaces = spaces.get_spaces(cifti=True)
cifti_spaces = spaces.get_standard(cifti=(True,))
for cifti_space in cifti_spaces:
surface_space = cifti_space
volume_space = cifti_space
Expand Down

0 comments on commit 0d11df8

Please sign in to comment.