Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
e0ed39cf
Commit
e0ed39cf
authored
3 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
ENH: new wrapper function for fsl_sub
parent
714a7f79
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/wrappers/__init__.py
+1
-0
1 addition, 0 deletions
fsl/wrappers/__init__.py
fsl/wrappers/fsl_sub.py
+22
-0
22 additions, 0 deletions
fsl/wrappers/fsl_sub.py
with
23 additions
and
0 deletions
fsl/wrappers/__init__.py
+
1
−
0
View file @
e0ed39cf
...
@@ -87,6 +87,7 @@ from .eddy import (eddy_cuda, # noqa
...
@@ -87,6 +87,7 @@ from .eddy import (eddy_cuda, # noqa
applytopup
)
applytopup
)
from
.fast
import
(
fast
,)
# noqa
from
.fast
import
(
fast
,)
# noqa
from
.fsl_anat
import
(
fsl_anat
,)
# noqa
from
.fsl_anat
import
(
fsl_anat
,)
# noqa
from
.fsl_sub
import
(
fsl_sub
,)
# noqa
from
.flirt
import
(
flirt
,
# noqa
from
.flirt
import
(
flirt
,
# noqa
invxfm
,
invxfm
,
applyxfm
,
applyxfm
,
...
...
This diff is collapsed.
Click to expand it.
fsl/wrappers/fsl_sub.py
0 → 100644
+
22
−
0
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment