File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
+ """Change directory to provide relative paths for doctests
3
+ >>> import os
4
+ >>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
5
+ >>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
6
+ >>> os.chdir(datadir)
7
+ """
8
+
2
9
from nipype .interfaces .base import (
3
10
TraitedSpec , BaseInterface , File )
4
11
from nipype .utils .filemanip import split_filename
@@ -51,7 +58,7 @@ class TensorMode(BaseInterface):
51
58
52
59
>>> import nipype.interfaces.dipy as dipy
53
60
>>> mode = dipy.TensorMode()
54
- >>> mode.inputs.in_file = 'dwi .nii'
61
+ >>> mode.inputs.in_file = 'diffusion .nii'
55
62
>>> mode.inputs.bvecs = 'bvecs'
56
63
>>> mode.inputs.bvals = 'bvals'
57
64
>>> mode.run() # doctest: +SKIP
You can’t perform that action at this time.
0 commit comments