Skip to content

Commit c8ddf6d

Browse files
author
David Ellis
committed
FIX: Fixes input to config for rb_date
1 parent 4bd4962 commit c8ddf6d

File tree

1 file changed

+5
-3
lines changed
  • nipype/workflows/smri/freesurfer

1 file changed

+5
-3
lines changed

nipype/workflows/smri/freesurfer/recon.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def setconfig(reg_template=None,
182182
lookup_table=None,
183183
wm_lookup_table=None,
184184
awk_file=None,
185-
rb_date=rb_date):
185+
rb_date=None):
186186
"""Set optional configurations to the default"""
187187
from nipype.workflows.smri.freesurfer.utils import getdefaultconfig
188188
def checkarg(arg, default):
@@ -232,12 +232,14 @@ def checkarg(arg, default):
232232
'lookup_table',
233233
'wm_lookup_table',
234234
'awk_file']
235-
236-
config_node = pe.Node(niu.Function(params,
235+
236+
config_node = pe.Node(niu.Function(params.append('rb_date'),
237237
params,
238238
setconfig),
239239
name="config")
240240

241+
config_node.inputs.rb_date = rb_date
242+
241243
for param in params:
242244
reconall.connect(inputspec, param, config_node, param)
243245

0 commit comments

Comments
 (0)