We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 68cf671 + 81b9cf7 commit 636d5d2Copy full SHA for 636d5d2
nibabel/freesurfer/mghformat.py
@@ -255,7 +255,7 @@ def get_zooms(self):
255
.. _mghformat: https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat#line-82
256
'''
257
# Do not return time zoom (TR) if 3D image
258
- tzoom = (self['tr'],)[:self._ndims() > 3]
+ tzoom = (self['tr'],) if self._ndims() > 3 else ()
259
return tuple(self._structarr['delta']) + tzoom
260
261
def set_zooms(self, zooms):
0 commit comments