We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fe2ebc commit b5b59faCopy full SHA for b5b59fa
nibabel/nifti1.py
@@ -820,7 +820,7 @@ def get_qform(self, coded=False):
820
quat = self.get_qform_quaternion()
821
R = quat2mat(quat)
822
vox = hdr['pixdim'][1:4].copy()
823
- if np.any(vox) < 0:
+ if np.any(vox < 0):
824
raise HeaderDataError('pixdims[1,2,3] should be positive')
825
qfac = hdr['pixdim'][0]
826
if qfac not in (-1, 1):
0 commit comments