Skip to content

Commit 9c83c9e

Browse files
author
dmordom
committed
fixed mrtrix direction generator out file treatment. Depends on command
filename previous commit
1 parent 99240e0 commit 9c83c9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/mrtrix/tensors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ class GenerateDirectionsInputSpec(CommandLineInputSpec):
304304
display_info = traits.Bool(argstr='-info', desc='Display information messages.')
305305
quiet_display = traits.Bool(argstr='-quiet', desc='do not display information messages or progress status.')
306306
display_debug = traits.Bool(argstr='-debug', desc='Display debugging messages.')
307-
out_file = File("directions.txt", argstr='%s', hash_files=False,
308-
position= -1, desc='the text file to write the directions to, as [ az el ] pairs.', usedefault=True)
307+
out_file = File(name_source=['num_dirs'], name_template='directions_%d.txt', argstr='%s', hash_files=False,
308+
position= -1, desc='the text file to write the directions to, as [ az el ] pairs.')
309309

310310
class GenerateDirectionsOutputSpec(TraitedSpec):
311311
out_file = File(exists=True, desc='directions file')

0 commit comments

Comments
 (0)