Skip to content

Commit 97f460e

Browse files
committed
fixed doctest
1 parent 84f7376 commit 97f460e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nipype/interfaces/dipy/tensors.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# -*- 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+
29
from nipype.interfaces.base import (
310
TraitedSpec, BaseInterface, File)
411
from nipype.utils.filemanip import split_filename
@@ -51,7 +58,7 @@ class TensorMode(BaseInterface):
5158
5259
>>> import nipype.interfaces.dipy as dipy
5360
>>> mode = dipy.TensorMode()
54-
>>> mode.inputs.in_file = 'dwi.nii'
61+
>>> mode.inputs.in_file = 'diffusion.nii'
5562
>>> mode.inputs.bvecs = 'bvecs'
5663
>>> mode.inputs.bvals = 'bvals'
5764
>>> mode.run() # doctest: +SKIP

0 commit comments

Comments
 (0)