Commit e0ed39cf authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

ENH: new wrapper function for fsl_sub

parent 714a7f79
......@@ -87,6 +87,7 @@ from .eddy import (eddy_cuda, # noqa
applytopup)
from .fast import (fast,) # noqa
from .fsl_anat import (fsl_anat,) # noqa
from .fsl_sub import (fsl_sub,) # noqa
from .flirt import (flirt, # noqa
invxfm,
applyxfm,
......
#!/usr/bin/env python
#
# fsl_sub.py - Wrapper for the fsl_sub command.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This module provides the :func:`fsl_sub` function, a wrapper for the FSL
`fsl_sub <https://git.fmrib.ox.ac.uk/fsl/fsl_sub>`_ command.
"""
from . import wrapperutils as wutils
@wutils.fslwrapper
def fsl_sub(*args, **kwargs):
"""Wrapper for the ``fsl_sub`` command.
"""
cmd = ['fsl_sub']
cmd += wutils.applyArgStyle('--', singlechar_args=True, **kwargs)
cmd += list(args)
return cmd
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment