We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5c93fd commit 4c5753dCopy full SHA for 4c5753d
nipype/interfaces/nipy/preprocess.py
@@ -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
9
import os
10
import warnings
11
@@ -211,7 +219,7 @@ class Trim(BaseInterface):
211
219
--------
212
220
>>> from nipype.interfaces.nipy.preprocess import Trim
213
221
>>> trim = Trim()
214
- >>> trim.inputs.in_file = ['functional.nii']
222
+ >>> trim.inputs.in_file = 'functional.nii'
215
223
>>> trim.inputs.begin_index = 3 # remove 3 first volumes
216
224
>>> res = trim.run() # doctest: +SKIP
217
225
0 commit comments