@@ -563,27 +563,37 @@ 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
+ class ApplyXfm (ApplyXFM ):
567
+ """
568
+ .. deprecated:: 0.12.1
569
+ Use :py:class:`nipype.interfaces.fsl.ApplyXFM` instead
570
+ """
571
+ def __init__ (self , ** inputs ):
572
+ super (confounds .TSNR , self ).__init__ (** inputs )
573
+ warnings .warn (("This interface has been renamed since 0.12.1,"
574
+ " please use nipype.interfaces.fsl.ApplyXFM" ),
575
+ UserWarning )
566
576
567
- class ApplyXfmInputSpec (FLIRTInputSpec ):
577
+ class ApplyXFMInputSpec (FLIRTInputSpec ):
568
578
apply_xfm = traits .Bool (
569
579
True , argstr = '-applyxfm' , requires = ['in_matrix_file' ],
570
580
desc = 'apply transformation supplied by in_matrix_file' ,
571
581
usedefault = True )
572
582
573
583
574
- class ApplyXfm (FLIRT ):
584
+ class ApplyXFM (FLIRT ):
575
585
"""Currently just a light wrapper around FLIRT,
576
586
with no modifications
577
587
578
- ApplyXfm is used to apply an existing tranform to an image
588
+ ApplyXFM is used to apply an existing tranform to an image
579
589
580
590
581
591
Examples
582
592
--------
583
593
584
594
>>> import nipype.interfaces.fsl as fsl
585
595
>>> from nipype.testing import example_data
586
- >>> applyxfm = fsl.ApplyXfm ()
596
+ >>> applyxfm = fsl.ApplyXFM ()
587
597
>>> applyxfm.inputs.in_file = example_data('structural.nii')
588
598
>>> applyxfm.inputs.in_matrix_file = example_data('trans.mat')
589
599
>>> applyxfm.inputs.out_file = 'newfile.nii'
@@ -592,7 +602,7 @@ class ApplyXfm(FLIRT):
592
602
>>> result = applyxfm.run() # doctest: +SKIP
593
603
594
604
"""
595
- input_spec = ApplyXfmInputSpec
605
+ input_spec = ApplyXFMInputSpec
596
606
597
607
598
608
class MCFLIRTInputSpec (FSLCommandInputSpec ):
0 commit comments