Skip to content

Commit 50bdee9

Browse files
author
bpinsard
committed
doctest
1 parent 9e5feaa commit 50bdee9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

nipype/interfaces/spm/utils.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,19 @@ class ApplyInverseDeformationOutput(TraitedSpec):
247247
desc='Transformed files')
248248

249249
class ApplyInverseDeformation(SPMCommand):
250+
""" Uses spm to apply inverse deformation stored in a .mat file or a
251+
deformation field to a given file
252+
253+
Examples
254+
--------
255+
256+
>>> import nipype.interfaces.spm.utils as spmu
257+
>>> inv = spmu.ApplyInverseDeformation()
258+
>>> inv.inputs.in_files = 'functional.nii'
259+
>>> inv.inputs.deformation = 'struct_to_func.mat'
260+
>>> inv.inputs.target = 'structural.nii'
261+
>>> inv.run() # doctest: +SKIP
262+
"""
250263

251264
input_spec = ApplyInverseDeformationInput
252265
output_spec = ApplyInverseDeformationOutput

0 commit comments

Comments
 (0)