Skip to content

Commit 643f7a1

Browse files
committed
TEST: mgz should fail on f64, no more fail on u16
1 parent e03cacc commit 643f7a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/freesurfer/tests/test_mghformat.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ def test_set_zooms():
172172

173173
def bad_dtype_mgh():
174174
"""This function raises an MGHError exception because
175-
uint16 is not a valid MGH datatype.
175+
float64 is not a valid MGH datatype.
176176
"""
177177
# try to write an unsigned short and make sure it
178178
# raises MGHError
179-
v = np.ones((7, 13, 3, 22), np.uint16)
179+
v = np.ones((7, 13, 3, 22), np.float64)
180180
# form a MGHImage object using data
181181
# and the default affine matrix (Note the "None")
182182
MGHImage(v, None)

0 commit comments

Comments
 (0)