Skip to content

Commit 4c5753d

Browse files
committed
DOctest fix
1 parent d5c93fd commit 4c5753d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

nipype/interfaces/nipy/preprocess.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
"""
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+
"""
19
import os
210
import warnings
311

@@ -211,7 +219,7 @@ class Trim(BaseInterface):
211219
--------
212220
>>> from nipype.interfaces.nipy.preprocess import Trim
213221
>>> trim = Trim()
214-
>>> trim.inputs.in_file = ['functional.nii']
222+
>>> trim.inputs.in_file = 'functional.nii'
215223
>>> trim.inputs.begin_index = 3 # remove 3 first volumes
216224
>>> res = trim.run() # doctest: +SKIP
217225

0 commit comments

Comments
 (0)