Skip to content

Commit 42f5c46

Browse files
committed
FIX: Typos
1 parent 8827392 commit 42f5c46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/algorithms/confounds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ def _run_interface(self, runtime):
422422
# Derive TR from NIfTI header, if possible
423423
try:
424424
TR = imgseries.header.get_zooms()[3]
425-
if self.inputs.get_xyzt_units()[1] == 'msec':
425+
if imgseries.get_xyzt_units()[1] == 'msec':
426426
TR /= 1000
427-
except AttributeError, IndexError:
428-
pass
427+
except (AttributeError, IndexError):
428+
TR = 0
429429

430430
if TR == 0:
431431
raise ValueError(

0 commit comments

Comments
 (0)