Skip to content

Commit 8585d51

Browse files
committed
fix: remove imports after interface cleaning
1 parent b9ba722 commit 8585d51

File tree

6 files changed

+2
-93
lines changed

6 files changed

+2
-93
lines changed

doc/users/nipypecmd.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This is especially useful when running Interfaces wrapping code that does not ha
1010
command line equivalents (nipy or SPM). Being able to run Nipype interfaces opens new
1111
possibilities such as inclusion of SPM processing steps in bash scripts.
1212

13-
To run Nipype Interafces you need to use the nipype_cmd tool that should already be installed.
13+
To run Nipype Interfaces you need to use the nipype_cmd tool that should already be installed.
1414
The tool allows you to list Interfaces available in a certain package:
1515

1616
.. testcode::
@@ -24,7 +24,6 @@ The tool allows you to list Interfaces available in a certain package:
2424
ComputeMask
2525
FitGLM
2626
EstimateContrast
27-
FmriRealign4d
2827

2928
After selecting a particular Interface you can learn what inputs it requires:
3029

doc/users/plugins.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ machinery.
103103

104104
.. note::
105105

106-
We provide backward compatibility with IPython_ versions earlier than
107-
0.10.1 using the IPythonX plugin. This plugin will be deprecated as of
108-
version 0.13 of Nipype.
109-
110106
Please read the IPython_ documentation to determine how to setup your cluster
111107
for distributed processing. This typically involves calling ipcluster.
112108

nipype/interfaces/nipy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# -*- coding: utf-8 -*-
22
from .model import FitGLM, EstimateContrast
3-
from .preprocess import ComputeMask, FmriRealign4d, SpaceTimeRealigner
3+
from .preprocess import ComputeMask, SpaceTimeRealigner
44
from .utils import Similarity

nipype/interfaces/nipy/tests/test_auto_FmriRealign4d.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

nipype/pipeline/plugins/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from .debug import DebugPlugin
88
from .linear import LinearPlugin
9-
from .ipythonx import IPythonXPlugin
109
from .pbs import PBSPlugin
1110
from .oar import OARPlugin
1211
from .sge import SGEPlugin

nipype/utils/tests/test_cmd.py

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -88,54 +88,6 @@ def test_list_nipy_interfacesp(self):
8888
\tComputeMask
8989
\tEstimateContrast
9090
\tFitGLM
91-
\tFmriRealign4d
9291
\tSimilarity
9392
\tSpaceTimeRealigner
9493
"""
95-
96-
def test_run_4d_realign_without_arguments(self):
97-
with pytest.raises(SystemExit) as cm:
98-
with capture_sys_output() as (stdout, stderr):
99-
nipype_cmd.main(
100-
['nipype_cmd', 'nipype.interfaces.nipy', 'FmriRealign4d'])
101-
102-
exit_exception = cm.value
103-
assert exit_exception.code == 2
104-
105-
error_message = """usage: nipype_cmd nipype.interfaces.nipy FmriRealign4d [-h]
106-
[--between_loops [BETWEEN_LOOPS [BETWEEN_LOOPS ...]]]
107-
[--ignore_exception]
108-
[--loops [LOOPS [LOOPS ...]]]
109-
[--slice_order SLICE_ORDER]
110-
[--speedup [SPEEDUP [SPEEDUP ...]]]
111-
[--start START]
112-
[--time_interp TIME_INTERP]
113-
[--tr_slices TR_SLICES]
114-
in_file [in_file ...]
115-
tr"""
116-
117-
if not PY2:
118-
error_message += """
119-
nipype_cmd nipype.interfaces.nipy FmriRealign4d: error: the following arguments are required: in_file, tr
120-
"""
121-
else:
122-
error_message += """
123-
nipype_cmd nipype.interfaces.nipy FmriRealign4d: error: too few arguments
124-
"""
125-
126-
assert stderr.getvalue() == error_message
127-
assert stdout.getvalue() == ''
128-
129-
def test_run_4d_realign_help(self):
130-
with pytest.raises(SystemExit) as cm:
131-
with capture_sys_output() as (stdout, stderr):
132-
nipype_cmd.main([
133-
'nipype_cmd', 'nipype.interfaces.nipy', 'FmriRealign4d',
134-
'-h'
135-
])
136-
137-
exit_exception = cm.value
138-
assert exit_exception.code == 0
139-
140-
assert stderr.getvalue() == ''
141-
assert "Run FmriRealign4d" in stdout.getvalue()

0 commit comments

Comments
 (0)