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
e5811b42
Commit
e5811b42
authored
3 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
TEST: adjust fast test
parent
face1fd8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_wrappers/test_wrappers.py
+10
-7
10 additions, 7 deletions
tests/test_wrappers/test_wrappers.py
with
10 additions
and
7 deletions
tests/test_wrappers/test_wrappers.py
+
10
−
7
View file @
e5811b42
...
@@ -327,13 +327,16 @@ def test_fast():
...
@@ -327,13 +327,16 @@ def test_fast():
cmd
=
op
.
join
(
fsldir
,
'
bin
'
,
'
fast
'
)
cmd
=
op
.
join
(
fsldir
,
'
bin
'
,
'
fast
'
)
result
=
fw
.
fast
(
'
input
'
,
'
myseg
'
,
n_classes
=
3
)
result
=
fw
.
fast
(
'
input
'
,
'
myseg
'
,
n_classes
=
3
)
expected
=
[
cmd
,
'
-v
'
,
'
--out=myseg
'
,
'
--class=3
'
,
'
input
'
]
expected
=
[
cmd
,
'
--out=myseg
'
,
'
--class=3
'
,
'
input
'
]
assert
result
.
stdout
[
0
]
==
'
'
.
join
(
expected
)
assert
result
.
stdout
[
0
]
==
'
'
.
join
(
expected
)
result
=
fw
.
fast
((
'
in1
'
,
'
in2
'
,
'
in3
'
),
'
myseg
'
,
n_classes
=
3
)
result
=
fw
.
fast
((
'
in1
'
,
'
in2
'
,
'
in3
'
),
'
myseg
'
,
n_classes
=
3
)
expected
=
[
cmd
,
'
-v
'
,
'
--out=myseg
'
,
'
--class=3
'
,
'
in1
'
,
'
in2
'
,
'
in3
'
]
expected
=
[
cmd
,
'
--out=myseg
'
,
'
--class=3
'
,
'
in1
'
,
'
in2
'
,
'
in3
'
]
assert
result
.
stdout
[
0
]
==
'
'
.
join
(
expected
)
result
=
fw
.
fast
((
'
in1
'
,
'
in2
'
,
'
in3
'
),
'
myseg
'
,
n_classes
=
3
,
verbose
=
True
)
expected
=
[
cmd
,
'
--out=myseg
'
,
'
--class=3
'
,
'
--verbose
'
,
'
in1
'
,
'
in2
'
,
'
in3
'
]
assert
result
.
stdout
[
0
]
==
'
'
.
join
(
expected
)
assert
result
.
stdout
[
0
]
==
'
'
.
join
(
expected
)
...
@@ -390,10 +393,10 @@ def test_tbss():
...
@@ -390,10 +393,10 @@ def test_tbss():
def
test_fsl_prepare_fieldmap
():
def
test_fsl_prepare_fieldmap
():
with
asrt
.
disabled
(),
run
.
dryrun
(),
mockFSLDIR
(
bin
=
(
'
fsl_prepare_fieldmap
'
,))
as
fsldir
:
with
asrt
.
disabled
(),
run
.
dryrun
(),
mockFSLDIR
(
bin
=
(
'
fsl_prepare_fieldmap
'
,))
as
fsldir
:
fpf
=
op
.
join
(
fsldir
,
'
bin
'
,
'
fsl_prepare_fieldmap
'
)
fpf
=
op
.
join
(
fsldir
,
'
bin
'
,
'
fsl_prepare_fieldmap
'
)
result
=
fw
.
fsl_prepare_fieldmap
(
phase_image
=
'
ph
'
,
result
=
fw
.
fsl_prepare_fieldmap
(
phase_image
=
'
ph
'
,
magnitude_image
=
'
mag
'
,
magnitude_image
=
'
mag
'
,
out_image
=
'
out
'
,
out_image
=
'
out
'
,
deltaTE
=
2.46
,
deltaTE
=
2.46
,
nocheck
=
True
)
nocheck
=
True
)
expected
=
(
fpf
,
(
'
SIEMENS
'
,
'
ph
'
,
'
mag
'
,
'
out
'
,
'
2.46
'
,
'
--nocheck
'
))
expected
=
(
fpf
,
(
'
SIEMENS
'
,
'
ph
'
,
'
mag
'
,
'
out
'
,
'
2.46
'
,
'
--nocheck
'
))
assert
checkResult
(
result
.
stdout
[
0
],
*
expected
)
assert
checkResult
(
result
.
stdout
[
0
],
*
expected
)
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