File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 3
3
"""
4
4
The maths module provides higher-level interfaces to some of the operations
5
5
that can be performed with the fslmaths command-line program.
6
+
7
+ Change directory to provide relative paths for doctests
8
+ >>> import os
9
+ >>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
10
+ >>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
11
+ >>> os.chdir(datadir)
6
12
"""
7
13
from __future__ import division
8
14
import os
@@ -293,11 +299,11 @@ class MultiImageMaths(MathsCommand):
293
299
--------
294
300
>>> from nipype.interfaces.fsl import MultiImageMaths
295
301
>>> maths = MultiImageMaths()
296
- >>> maths.inputs.in_file = "functional.nii" # doctest: +SKIP
302
+ >>> maths.inputs.in_file = "functional.nii"
297
303
>>> maths.inputs.op_string = "-add %s -mul -1 -div %s"
298
- >>> maths.inputs.operand_files = ["functional2.nii", "functional3.nii"] # doctest: +SKIP
299
- >>> maths.inputs.out_file = "functional4.nii" # doctest: +SKIP
300
- >>> maths.cmdline # doctest: +SKIP
304
+ >>> maths.inputs.operand_files = ["functional2.nii", "functional3.nii"]
305
+ >>> maths.inputs.out_file = "functional4.nii"
306
+ >>> maths.cmdline
301
307
'fslmaths functional.nii -add functional2.nii -mul -1 -div functional3.nii functional4.nii'
302
308
303
309
"""
You can’t perform that action at this time.
0 commit comments