Skip to content

Commit 0b91a37

Browse files
author
bpinsard
committed
add doc
1 parent 8466f59 commit 0b91a37

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

nipype/interfaces/nipy/preprocess.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,18 @@ class TrimOutputSpec(TraitedSpec):
204204
out_file = File(exists=True)
205205

206206
class Trim(BaseInterface):
207+
""" Simple interface to trim a few volumes from a 4d fmri nifti file
208+
209+
Examples
210+
--------
211+
>>> from nipype.interfaces.nipy.preprocess import Trim
212+
>>> trim = Trim()
213+
>>> trim.inputs.in_file = ['functional.nii']
214+
>>> trim.inputs.begin_index = 3 # remove 3 first volumes
215+
>>> res = trim.run() # doctest: +SKIP
216+
217+
"""
218+
207219
input_spec = TrimInputSpec
208220
output_spec = TrimOutputSpec
209221

0 commit comments

Comments
 (0)