Skip to content

Commit b44b908

Browse files
committed
rf: do not set input_names, clean up mindboggle function
1 parent 306f0d1 commit b44b908

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

mindboggle/mindboggle123

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,12 @@ def mindboggle(subjectid, fsdir, antsdir, antsseg, out, prov, args,
259259
if num_threads > 1:
260260
all_args += ' --plugin MultiProc --plugin_args "dict(n_procs={0})"'.\
261261
format(num_threads)
262-
command = "{0} {1}".format('mindboggle', all_args)
263-
print(command)
264262

265-
from nipype import config
266263
cli = CommandLine(command='mindboggle')
267264
cli.inputs.args = all_args
268-
cli.cmdline
265+
command = cli.cmdline
266+
print(command)
269267
cli.run()
270-
271268
return command
272269

273270
# ----------------------------------------------------------------------------
@@ -278,14 +275,6 @@ def mindboggle(subjectid, fsdir, antsdir, antsseg, out, prov, args,
278275
# ----------------------------------------------------------------------------
279276
Mindboggle = Node(name='mindboggle',
280277
interface=Fn(function=mindboggle,
281-
input_names=['subjectid',
282-
'fsdir',
283-
'antsdir',
284-
'antsseg',
285-
'out',
286-
'prov',
287-
'args',
288-
'num_threads'],
289278
output_names=['command']))
290279
Mindboggle.inputs.subjectid = ID
291280
if args.skip_freesurfer:

0 commit comments

Comments
 (0)