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
f19c5a85
Commit
f19c5a85
authored
1 year ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Wrapper for fsl_get_standard
parent
86445049
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/get_standard.py
+30
-0
30 additions, 0 deletions
fsl/wrappers/get_standard.py
with
31 additions
and
0 deletions
fsl/wrappers/__init__.py
+
1
−
0
View file @
f19c5a85
...
@@ -141,6 +141,7 @@ from fsl.wrappers.fugue import (fugue,
...
@@ -141,6 +141,7 @@ from fsl.wrappers.fugue import (fugue,
prelude
,
prelude
,
sigloss
,
sigloss
,
fsl_prepare_fieldmap
)
fsl_prepare_fieldmap
)
from
fsl.wrappers.get_standard
import
(
get_standard
,)
from
fsl.wrappers.melodic
import
(
melodic
,
from
fsl.wrappers.melodic
import
(
melodic
,
fsl_regfilt
,
fsl_regfilt
,
fsl_glm
)
fsl_glm
)
...
...
This diff is collapsed.
Click to expand it.
fsl/wrappers/get_standard.py
0 → 100644
+
30
−
0
View file @
f19c5a85
#!/usr/bin/env python
#
# fugue.py - Wrapper for the fsl_get_standard command.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""
This module contains wrapper function for the ``fsl_get_standard`` command.
"""
from
.
import
wrapperutils
as
wutils
def
get_standard
(
image_type
=
None
,
modality
=
None
,
**
kwargs
):
"""
Wrapper for the ``fsl_get_standard`` command.
Only returns standard output - the standard error is suppressed.
"""
return
_get_standard
(
image_type
,
modality
,
**
kwargs
)[
0
].
strip
()
@wutils.fslwrapper
def
_get_standard
(
image_type
=
None
,
modality
=
None
,
**
kwargs
):
"""
Real wrapper for the ``fsl_get_standard`` command.
"""
cmd
=
[
'
fsl_get_standard
'
]
if
image_type
is
not
None
:
cmd
+=
[
image_type
]
if
modality
is
not
None
:
cmd
+=
[
modality
]
return
cmd
+
wutils
.
applyArgStyle
(
'
--=
'
,
**
kwargs
)
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