Skip to content

Commit 81b9cf7

Browse files
committed
STY: Clearer conditional
1 parent 395dca5 commit 81b9cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/freesurfer/mghformat.py

Lines changed: 1 addition & 1 deletion
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'],)[:int(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)