Commit e20eaf04 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

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

parent 482a1290
......@@ -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.ndims == 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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment