Skip to content

Commit 636d5d2

Browse files
authored
Merge pull request #630 from larsoner/fix-np
FIX: Fix for NumPy deprecation
2 parents 68cf671 + 81b9cf7 commit 636d5d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/freesurfer/mghformat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def get_zooms(self):
255255
.. _mghformat: https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat#line-82
256256
'''
257257
# Do not return time zoom (TR) if 3D image
258-
tzoom = (self['tr'],)[:self._ndims() > 3]
258+
tzoom = (self['tr'],) if self._ndims() > 3 else ()
259259
return tuple(self._structarr['delta']) + tzoom
260260

261261
def set_zooms(self, zooms):

0 commit comments

Comments
 (0)