Skip to content

Commit 2c1c045

Browse files
author
David Ellis
committed
FIX: Fixes error causing sphere.reg to be passed as a label.
1 parent 987427a commit 2c1c045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/workflows/smri/freesurfer/ba_maps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def create_ba_maps_wf(name="Brodmann_Area_Maps", th3=True, exvivo=True,
6565
white='surf/{0}.white'.format(hemisphere))
6666

6767
out_files = list()
68-
source_fields = ['sphere_reg', 'white']
68+
source_fields = list()
6969
if threshold:
7070
for label in labels:
7171
if label == 'perirhinal' and not entorhinal:
@@ -91,7 +91,7 @@ def create_ba_maps_wf(name="Brodmann_Area_Maps", th3=True, exvivo=True,
9191
source_fields.append(label)
9292
node_name = 'BA_Maps_' + hemisphere
9393

94-
source_subject = pe.Node(DataGrabber(outfields=source_fields),
94+
source_subject = pe.Node(DataGrabber(outfields=source_fields + ['sphere_reg', 'white']),
9595
name=node_name + "_srcsubject")
9696
source_subject.inputs.template = '*'
9797
source_subject.inputs.sort_filelist = False

0 commit comments

Comments
 (0)