Skip to content

Commit e039ff3

Browse files
committed
gen_cifti only accepts fsaverage spaces
1 parent 3f6596b commit e039ff3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fmriprep/workflows/bold/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,8 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
805805
gen_cifti = pe.MapNode(GenerateCifti(), iterfield=["surface_target", "gifti_files"],
806806
name="gen_cifti")
807807
gen_cifti.inputs.TR = metadata.get("RepetitionTime")
808-
gen_cifti.inputs.surface_target = surface_spaces
808+
gen_cifti.inputs.surface_target = [s for s in surface_spaces
809+
if s.startswith('fsaverage')]
809810

810811
workflow.connect([
811812
(bold_surf_wf, gen_cifti, [

0 commit comments

Comments
 (0)