Skip to content

Commit 9c5eadd

Browse files
committed
fix doctests
1 parent 8ba033c commit 9c5eadd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

nipype/interfaces/mrtrix3/utils.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def _list_outputs(self):
356356
class TCK2VTKInputSpec(CommandLineInputSpec):
357357
in_file = File(exists=True, argstr='%s', mandatory=True, position=-2,
358358
desc='input tractography')
359-
out_file = File('tracked.vtk', argstr='%s', usedefault=True, position=-1,
359+
out_file = File('tracks.vtk', argstr='%s', usedefault=True, position=-1,
360360
desc='output VTK file')
361361
reference = File(
362362
exists=True, argstr='-image %s', desc='if specified, the properties of'
@@ -379,17 +379,18 @@ class TCK2VTKOutputSpec(TraitedSpec):
379379
class TCK2VTK(MRTrix3Base):
380380

381381
"""
382-
382+
Convert a track file to a vtk format, cave: coordinates are in XYZ
383+
coordinates not reference
383384
384385
Example
385386
-------
386387
387388
>>> import nipype.interfaces.mrtrix3 as mrt
388389
>>> vtk = mrt.TCK2VTK()
389-
>>> vtk.inputs.in_file = 'tracked.tck'
390-
>>> vtk.inputs.reference = 'dwi.nii.gz'
390+
>>> vtk.inputs.in_file = 'tracks.tck'
391+
>>> vtk.inputs.reference = 'b0.nii'
391392
>>> vtk.cmdline # doctest: +ELLIPSIS
392-
'tck2vtk -image dwi.nii.gz tracked.tck tracked.vtk'
393+
'tck2vtk -image b0.nii tracks.tck tracks.vtk'
393394
>>> vtk.run() # doctest: +SKIP
394395
"""
395396

0 commit comments

Comments
 (0)