Skip to content
Snippets Groups Projects
Commit e20eaf04 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: Update image tests for new ndim and data attributes.

parent 482a1290
No related branches found
No related tags found
No related merge requests found
...@@ -285,11 +285,12 @@ def _test_Image_atts(imgtype): ...@@ -285,11 +285,12 @@ def _test_Image_atts(imgtype):
i = fslimage.Image(path) i = fslimage.Image(path)
assert tuple(i.shape) == tuple(expdims) assert tuple(i.shape) == tuple(expdims)
assert tuple(i.data.shape) == tuple(expdims)
assert tuple(i.pixdim) == tuple(exppixdims) assert tuple(i.pixdim) == tuple(exppixdims)
assert tuple(i.nibImage.shape) == tuple(dims) assert tuple(i.nibImage.shape) == tuple(dims)
assert tuple(i.nibImage.header.get_zooms()) == tuple(pixdims) assert tuple(i.nibImage.header.get_zooms()) == tuple(pixdims)
assert i.ndims == expndims assert i.ndim == expndims
assert i.dtype == dtype assert i.dtype == dtype
assert i.name == op.basename(path) assert i.name == op.basename(path)
assert i.dataSource == fslpath.addExt(path, assert i.dataSource == fslpath.addExt(path,
...@@ -859,8 +860,9 @@ def _test_Image_5D(imgtype): ...@@ -859,8 +860,9 @@ def _test_Image_5D(imgtype):
img = fslimage.Image(path) img = fslimage.Image(path)
assert img.shape == dims assert img.shape == dims
assert img.ndims == 5 assert img.ndim == 5
assert img.data.shape == dims
def test_Image_voxToScaledVox_analyze(): _test_Image_voxToScaledVox(0) def test_Image_voxToScaledVox_analyze(): _test_Image_voxToScaledVox(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment