Skip to content

Commit b5b59fa

Browse files
committed
BF: Misplaced parenthesis
Always returned `False`.
1 parent 7fe2ebc commit b5b59fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/nifti1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ def get_qform(self, coded=False):
820820
quat = self.get_qform_quaternion()
821821
R = quat2mat(quat)
822822
vox = hdr['pixdim'][1:4].copy()
823-
if np.any(vox) < 0:
823+
if np.any(vox < 0):
824824
raise HeaderDataError('pixdims[1,2,3] should be positive')
825825
qfac = hdr['pixdim'][0]
826826
if qfac not in (-1, 1):

0 commit comments

Comments
 (0)