Skip to content

Commit 419494d

Browse files
committed
Merge branch 'pr/808'
2 parents 3d029c0 + dc277f3 commit 419494d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
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')

nipype/interfaces/mrtrix/tests/test_auto_GenerateDirections.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ def test_GenerateDirections_inputs():
2323
),
2424
out_file=dict(argstr='%s',
2525
hash_files=False,
26+
name_source=['num_dirs'],
27+
name_template='directions_%d.txt',
2628
position=-1,
27-
usedefault=True,
2829
),
2930
power=dict(argstr='-power %s',
3031
),

0 commit comments

Comments
 (0)