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
Evan Edmond
fslpy
Commits
e20eaf04
Commit
e20eaf04
authored
May 27, 2018
by
Paul McCarthy
🚵
Browse files
TEST: Update image tests for new ndim and data attributes.
parent
482a1290
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_image.py
View file @
e20eaf04
...
...
@@ -285,11 +285,12 @@ def _test_Image_atts(imgtype):
i
=
fslimage
.
Image
(
path
)
assert
tuple
(
i
.
shape
)
==
tuple
(
expdims
)
assert
tuple
(
i
.
data
.
shape
)
==
tuple
(
expdims
)
assert
tuple
(
i
.
pixdim
)
==
tuple
(
exppixdims
)
assert
tuple
(
i
.
nibImage
.
shape
)
==
tuple
(
dims
)
assert
tuple
(
i
.
nibImage
.
header
.
get_zooms
())
==
tuple
(
pixdims
)
assert
i
.
ndim
s
==
expndims
assert
i
.
ndim
==
expndims
assert
i
.
dtype
==
dtype
assert
i
.
name
==
op
.
basename
(
path
)
assert
i
.
dataSource
==
fslpath
.
addExt
(
path
,
...
...
@@ -859,8 +860,9 @@ def _test_Image_5D(imgtype):
img
=
fslimage
.
Image
(
path
)
assert
img
.
shape
==
dims
assert
img
.
ndims
==
5
assert
img
.
shape
==
dims
assert
img
.
ndim
==
5
assert
img
.
data
.
shape
==
dims
def
test_Image_voxToScaledVox_analyze
():
_test_Image_voxToScaledVox
(
0
)
...
...
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