@@ -563,27 +563,26 @@ def _parse_inputs(self, skip=None):
563
563
skip .append ('save_log' )
564
564
return super (FLIRT , self )._parse_inputs (skip = skip )
565
565
566
-
567
- class ApplyXfmInputSpec (FLIRTInputSpec ):
566
+ class ApplyXFMInputSpec (FLIRTInputSpec ):
568
567
apply_xfm = traits .Bool (
569
568
True , argstr = '-applyxfm' , requires = ['in_matrix_file' ],
570
569
desc = 'apply transformation supplied by in_matrix_file' ,
571
570
usedefault = True )
572
571
573
572
574
- class ApplyXfm (FLIRT ):
573
+ class ApplyXFM (FLIRT ):
575
574
"""Currently just a light wrapper around FLIRT,
576
575
with no modifications
577
576
578
- ApplyXfm is used to apply an existing tranform to an image
577
+ ApplyXFM is used to apply an existing tranform to an image
579
578
580
579
581
580
Examples
582
581
--------
583
582
584
583
>>> import nipype.interfaces.fsl as fsl
585
584
>>> from nipype.testing import example_data
586
- >>> applyxfm = fsl.ApplyXfm ()
585
+ >>> applyxfm = fsl.preprocess.ApplyXFM ()
587
586
>>> applyxfm.inputs.in_file = example_data('structural.nii')
588
587
>>> applyxfm.inputs.in_matrix_file = example_data('trans.mat')
589
588
>>> applyxfm.inputs.out_file = 'newfile.nii'
@@ -592,8 +591,18 @@ class ApplyXfm(FLIRT):
592
591
>>> result = applyxfm.run() # doctest: +SKIP
593
592
594
593
"""
595
- input_spec = ApplyXfmInputSpec
594
+ input_spec = ApplyXFMInputSpec
596
595
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 )
597
606
598
607
class MCFLIRTInputSpec (FSLCommandInputSpec ):
599
608
in_file = File (exists = True , position = 0 , argstr = "-in %s" , mandatory = True ,
0 commit comments