Skip to content

Commit fef51b8

Browse files
demianweffigies
authored andcommitted
Corrected problem in new nifti header checks
1 parent c2dbd16 commit fef51b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/cifti2/parse_cifti2_fast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ def _chk_pixdims(hdr, fix=False):
110110
if not np.any(spat_dims <= 0):
111111
return hdr, rep
112112
rep.problem_level = 35
113-
rep.problem_msg('pixdim[1,2,3] should be zero or positive')
113+
rep.problem_msg = 'pixdim[1,2,3] should be zero or positive'
114114
if fix:
115115
hdr['pixdim'][1:4] = np.abs(spat_dims)
116-
rep.fix_msg('setting to abs of pixdim values')
116+
rep.fix_msg = 'setting to abs of pixdim values'
117117
return hdr, rep
118118

119119

0 commit comments

Comments
 (0)