Skip to content

Commit 857381f

Browse files
committed
More concise _format_arg function in camino ProcStreamlines
1 parent 956656a commit 857381f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

nipype/interfaces/camino/convert.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,7 @@ class ProcStreamlines(StdOutCommandLine):
265265

266266
def _format_arg(self, name, spec, value):
267267
if name == 'outputroot':
268-
newval = self._get_actual_ouputroot(value)
269-
arg = '-outputroot ' + newval
270-
return arg
268+
return spec.argstr % self._get_actual_outputroot(value)
271269
return super(ProcStreamlines, self)._format_arg(name, spec, value)
272270

273271
def _run_interface(self, runtime):

0 commit comments

Comments
 (0)