Skip to content

Commit 5fd7a4f

Browse files
author
Shoshana Berleant
authored
Merge pull request #1713 from shoshber/consistentxfm
FIX: Make XFM capitalization consistent
2 parents 8156eb4 + 743023c commit 5fd7a4f

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -563,27 +563,26 @@ def _parse_inputs(self, skip=None):
563563
skip.append('save_log')
564564
return super(FLIRT, self)._parse_inputs(skip=skip)
565565

566-
567-
class ApplyXfmInputSpec(FLIRTInputSpec):
566+
class ApplyXFMInputSpec(FLIRTInputSpec):
568567
apply_xfm = traits.Bool(
569568
True, argstr='-applyxfm', requires=['in_matrix_file'],
570569
desc='apply transformation supplied by in_matrix_file',
571570
usedefault=True)
572571

573572

574-
class ApplyXfm(FLIRT):
573+
class ApplyXFM(FLIRT):
575574
"""Currently just a light wrapper around FLIRT,
576575
with no modifications
577576
578-
ApplyXfm is used to apply an existing tranform to an image
577+
ApplyXFM is used to apply an existing tranform to an image
579578
580579
581580
Examples
582581
--------
583582
584583
>>> import nipype.interfaces.fsl as fsl
585584
>>> from nipype.testing import example_data
586-
>>> applyxfm = fsl.ApplyXfm()
585+
>>> applyxfm = fsl.preprocess.ApplyXFM()
587586
>>> applyxfm.inputs.in_file = example_data('structural.nii')
588587
>>> applyxfm.inputs.in_matrix_file = example_data('trans.mat')
589588
>>> applyxfm.inputs.out_file = 'newfile.nii'
@@ -592,8 +591,18 @@ class ApplyXfm(FLIRT):
592591
>>> result = applyxfm.run() # doctest: +SKIP
593592
594593
"""
595-
input_spec = ApplyXfmInputSpec
594+
input_spec = ApplyXFMInputSpec
596595

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

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

0 commit comments

Comments
 (0)