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

TEST: Test Image.nvals property

parent e8f52200
No related branches found
No related tags found
No related merge requests found
......@@ -306,6 +306,7 @@ def _test_Image_atts(imgtype):
assert tuple(i.nibImage.shape) == tuple(dims)
assert tuple(i.nibImage.header.get_zooms()) == tuple(pixdims)
asert i.nvals == 1
assert i.ndim == expndims
assert i.dtype == dtype
assert i.name == op.basename(path)
......@@ -1170,4 +1171,5 @@ def test_rgb_image():
img = fslimage.Image('rgb.nii')
assert img.nvals == 3
assert img.dataRange == (0, 255)
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