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
Christoph Arthofer
fslpy
Commits
d57adba3
Commit
d57adba3
authored
Nov 25, 2020
by
Evan Edmond
Browse files
ENH: <scanner> defaults to 'SIEMENS'
parent
3dcfedbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsl/wrappers/fugue.py
View file @
d57adba3
...
...
@@ -86,9 +86,11 @@ def prelude(**kwargs):
@
wutils
.
fileOrImage
(
'phase_image'
,
'magnitude_image'
,
'out_image'
)
@
wutils
.
fslwrapper
def
fsl_prepare_fieldmap
(
scanner
,
phase_image
,
magnitude_image
,
out_image
,
deltaTE
,
**
kwargs
):
"""Wrapper for the ``fsl_prepare_fieldmap`` command."""
def
fsl_prepare_fieldmap
(
phase_image
,
magnitude_image
,
out_image
,
deltaTE
,
scanner
=
None
,
**
kwargs
):
"""Wrapper for the ``fsl_prepare_fieldmap`` command. <scanner> defaults to 'SIEMENS'"""
if
scanner
is
None
:
scanner
=
'SIEMENS'
valmap
=
{
'nocheck'
:
wutils
.
SHOW_IF_TRUE
,
}
...
...
tests/test_wrappers/test_wrappers.py
View file @
d57adba3
...
...
@@ -389,8 +389,7 @@ def test_tbss():
def
test_fsl_prepare_fieldmap
():
with
asrt
.
disabled
(),
run
.
dryrun
(),
mockFSLDIR
(
bin
=
(
'fsl_prepare_fieldmap'
,))
as
fsldir
:
fpf
=
op
.
join
(
fsldir
,
'bin'
,
'fsl_prepare_fieldmap'
)
result
=
fw
.
fsl_prepare_fieldmap
(
scanner
=
'SIEMENS'
,
phase_image
=
'ph'
,
result
=
fw
.
fsl_prepare_fieldmap
(
phase_image
=
'ph'
,
magnitude_image
=
'mag'
,
out_image
=
'out'
,
deltaTE
=
2.46
,
...
...
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