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 395dca5 commit 81b9cf7Copy full SHA for 81b9cf7
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'],)[:int(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