Skip to content

Commit 8333780

Browse files
committed
FIX: Save TR in seconds in parrec2nii
1 parent 97a0467 commit 8333780

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nibabel/parrec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,8 @@ def as_analyze_map(self):
775775
self.general_info['exam_date'].replace(' ', ''),
776776
self.general_info['protocol_name']))[:80] # max len
777777
is_fmri = (self.general_info['max_dynamics'] > 1)
778-
t = 'msec' if is_fmri else 'unknown'
778+
# PAR/REC uses msec, but in _calc_zooms we convert to sec
779+
t = 'sec' if is_fmri else 'unknown'
779780
xyzt_units = unit_codes['mm'] + unit_codes[t]
780781
return dict(descr=descr, xyzt_units=xyzt_units) # , pixdim=pixdim)
781782

0 commit comments

Comments
 (0)