Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
e0ed39cf
Commit
e0ed39cf
authored
Aug 20, 2021
by
Paul McCarthy
🚵
Browse files
ENH: new wrapper function for fsl_sub
parent
714a7f79
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsl/wrappers/__init__.py
View file @
e0ed39cf
...
...
@@ -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
,
...
...
fsl/wrappers/fsl_sub.py
0 → 100644
View file @
e0ed39cf
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment