Skip to content

Commit 199b25d

Browse files
author
Shoshana Berleant
authored
Merge pull request #1726 from shoshber/duh
FIX bug
2 parents 8ddca5a + a1aa0d4 commit 199b25d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,10 +600,10 @@ class ApplyXfm(ApplyXFM):
600600
Use :py:class:`nipype.interfaces.fsl.ApplyXFM` instead
601601
"""
602602
def __init__(self, **inputs):
603-
super(confounds.TSNR, self).__init__(**inputs)
604-
warnings.warn(("This interface has been renamed since 0.12.1,"
605-
" please use nipype.interfaces.fsl.ApplyXFM"),
606-
UserWarning)
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)
607607

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

nipype/interfaces/fsl/tests/test_preprocess.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import shutil
1111

1212
from nipype.testing import (assert_equal, assert_not_equal, assert_raises,
13-
skipif)
13+
skipif, assert_true)
1414

1515
from nipype.utils.filemanip import split_filename, filename_to_list
1616
from .. import preprocess as fsl
@@ -614,3 +614,8 @@ def test_first_genfname():
614614
value = first._gen_fname(name='original_segmentations')
615615
expected_value = os.path.abspath('segment_all_none_origsegs.nii.gz')
616616
yield assert_equal, value, expected_value
617+
618+
@skipif(no_fsl)
619+
def test_deprecation():
620+
interface = fsl.ApplyXfm()
621+
yield assert_true, isinstance(interface, fsl.ApplyXFM)

0 commit comments

Comments
 (0)