File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ the following commands are executed at the beginning of your script:
9
9
10
10
.. testcode ::
11
11
12
- from nipype import spm
12
+ from nipype.interfaces import spm
13
13
matlab_cmd = '/path/to/run_spm8.sh /path/to/Compiler_Runtime/v713/ script'
14
14
spm.SPMCommand.set_mlab_paths(matlab_cmd=matlab_cmd, use_mcr=True)
15
15
Original file line number Diff line number Diff line change 18
18
from nipype import config
19
19
config .enable_provenance ()
20
20
21
- from nipype import spm , fsl
21
+ from nipype . interfaces import spm , fsl
22
22
23
23
# In order to use this example with SPM's matlab common runtime
24
24
# matlab_cmd = ('/Users/satra/Downloads/spm8/run_spm8.sh '
Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ class ImageMaths(FSLCommand):
343
343
Examples
344
344
--------
345
345
346
- >>> from nipype import fsl
346
+ >>> from nipype.interfaces import fsl
347
347
>>> from nipype.testing import anatfile
348
348
>>> maths = fsl.ImageMaths(in_file=anatfile, op_string= '-add 5',
349
349
... out_file='foo_maths.nii')
Original file line number Diff line number Diff line change 5
5
In order to use the standalone MCR version of spm, you need to ensure that
6
6
the following commands are executed at the beginning of your script::
7
7
8
- from nipype import spm
8
+ from nipype.interfaces import spm
9
9
matlab_cmd = '/path/to/run_spm8.sh /path/to/Compiler_Runtime/v713/ script'
10
10
spm.SPMCommand.set_mlab_paths(matlab_cmd=matlab_cmd, use_mcr=True)
11
11
Original file line number Diff line number Diff line change @@ -1099,7 +1099,8 @@ class Node(WorkflowBase):
1099
1099
Examples
1100
1100
--------
1101
1101
1102
- >>> from nipype import Node, spm
1102
+ >>> from nipype import Node
1103
+ >>> from nipype.interfaces import spm
1103
1104
>>> realign = Node(spm.Realign(), 'realign')
1104
1105
>>> realign.inputs.in_files = 'functional.nii'
1105
1106
>>> realign.inputs.register_to_mean = True
@@ -1984,7 +1985,8 @@ class MapNode(Node):
1984
1985
Examples
1985
1986
--------
1986
1987
1987
- >>> from nipype import MapNode, fsl
1988
+ >>> from nipype import MapNode
1989
+ >>> from nipype.interfaces import fsl
1988
1990
>>> realign = MapNode(fsl.MCFLIRT(), 'in_file', 'realign')
1989
1991
>>> realign.inputs.in_file = ['functional.nii',
1990
1992
... 'functional2.nii',
You can’t perform that action at this time.
0 commit comments