Skip to content

Commit 25512bf

Browse files
committed
BF - out-of-range dim error message bad format
Passing a tuple but only one %s in the format string.
1 parent 953ea8b commit 25512bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/analyze.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ def set_data_shape(self, shape):
626626
# Check that dimensions fit
627627
if not np.all(dims[1:ndims+1] == shape):
628628
raise HeaderDataError('shape %s does not fit in dim datatype' %
629-
shape)
629+
(shape,))
630630
self._structarr['pixdim'][ndims+1:] = 1.0
631631

632632
def get_base_affine(self):

0 commit comments

Comments
 (0)