Skip to content

Commit 63c108f

Browse files
committed
fix: remove deprecated interface.
1 parent ffe7dd5 commit 63c108f

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

nipype/interfaces/fsl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""
99

1010
from .base import (FSLCommand, Info, check_fsl, no_fsl, no_fsl_course_data)
11-
from .preprocess import (FAST, FLIRT, ApplyXfm, ApplyXFM, BET, MCFLIRT, FNIRT,
11+
from .preprocess import (FAST, FLIRT, pplyXFM, BET, MCFLIRT, FNIRT,
1212
ApplyWarp, SliceTimer, SUSAN, PRELUDE, FUGUE, FIRST)
1313
from .model import (Level1Design, FEAT, FEATModel, FILMGLS, FEATRegister,
1414
FLAMEO, ContrastMgr, MultipleRegressDesign, L2Model, SMM,

nipype/interfaces/fsl/preprocess.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -594,16 +594,6 @@ class ApplyXFM(FLIRT):
594594
"""
595595
input_spec = ApplyXFMInputSpec
596596

597-
class ApplyXfm(ApplyXFM):
598-
"""
599-
.. deprecated:: 0.12.1
600-
Use :py:class:`nipype.interfaces.fsl.ApplyXFM` instead
601-
"""
602-
def __init__(self, **inputs):
603-
super(ApplyXfm, self).__init__(**inputs)
604-
warn(('This interface has been renamed since 0.12.1, please use '
605-
'nipype.interfaces.fsl.ApplyXFM'),
606-
UserWarning)
607597

608598
class MCFLIRTInputSpec(FSLCommandInputSpec):
609599
in_file = File(exists=True, position=0, argstr="-in %s", mandatory=True,

nipype/interfaces/fsl/tests/test_auto_ApplyXfm.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from __future__ import unicode_literals
3-
from ..preprocess import ApplyXfm
3+
from ..preprocess import ApplyXFM
44

55

6-
def test_ApplyXfm_inputs():
6+
def test_ApplyXFM_inputs():
77
input_map = dict(angle_rep=dict(argstr='-anglerep %s',
88
),
99
apply_isoxfm=dict(argstr='-applyisoxfm %f',
@@ -145,19 +145,19 @@ def test_ApplyXfm_inputs():
145145
min_ver='5.0.0',
146146
),
147147
)
148-
inputs = ApplyXfm.input_spec()
148+
inputs = ApplyXFM.input_spec()
149149

150150
for key, metadata in list(input_map.items()):
151151
for metakey, value in list(metadata.items()):
152152
assert getattr(inputs.traits()[key], metakey) == value
153153

154154

155-
def test_ApplyXfm_outputs():
155+
def test_ApplyXFM_outputs():
156156
output_map = dict(out_file=dict(),
157157
out_log=dict(),
158158
out_matrix_file=dict(),
159159
)
160-
outputs = ApplyXfm.output_spec()
160+
outputs = ApplyXFM.output_spec()
161161

162162
for key, metadata in list(output_map.items()):
163163
for metakey, value in list(metadata.items()):

0 commit comments

Comments
 (0)