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
222f31f6
Commit
222f31f6
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
TEST: Test adjustment for compressed voxelwise EVs
parent
14dba039
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_featdesign.py
+16
-0
16 additions, 0 deletions
tests/test_featdesign.py
with
16 additions
and
0 deletions
tests/test_featdesign.py
+
16
−
0
View file @
222f31f6
...
...
@@ -412,3 +412,19 @@ def test_VoxelwiseEVs():
exp
=
img
.
dataobj
[
x
,
y
,
z
,
:]
assert
np
.
all
(
ev1
.
image
[
x
,
y
,
z
,
:]
==
exp
)
assert
np
.
all
(
ev2
.
image
[
x
,
y
,
z
,
:]
==
exp
)
def
test_compressed_voxelwise_ev
():
testcases
=
[((
1
,
1
,
10
,
10
),
(
0
,
0
,
5
)),
((
1
,
10
,
1
,
10
),
(
0
,
5
,
0
)),
((
10
,
1
,
1
,
10
),
(
5
,
0
,
0
))]
with
tempdir
():
for
shape
,
vox
in
testcases
:
img
=
tests
.
make_random_image
(
'
vev.nii.gz
'
,
shape
)
vev
=
featdesign
.
VoxelwiseEV
(
0
,
0
,
'
ev1
'
,
'
vev.nii.gz
'
)
x
,
y
,
z
=
vox
assert
np
.
all
(
vev
.
getData
(
5
,
5
,
5
)
==
img
.
dataobj
[
x
,
y
,
z
,
:])
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