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 95f93fb commit 218aafaCopy full SHA for 218aafa
nibabel/tests/test_parrec.py
@@ -782,8 +782,13 @@ def test_exts2par():
782
783
784
def test_dualTR():
785
+ expected_TRs = np.asarray([2000., 500.])
786
with open(DUAL_TR_PAR, 'rt') as fobj:
- with suppress_warnings():
787
+ with clear_and_catch_warnings(modules=[parrec], record=True) as wlist:
788
+ simplefilter('always')
789
dualTR_hdr = PARRECHeader.from_fileobj(fobj)
790
+ assert_equal(len(wlist), 1)
791
assert_array_equal(dualTR_hdr.general_info['repetition_time'],
- np.asarray([2000., 500.]))
792
+ expected_TRs)
793
+ # zoom on 4th dimensions is the first TR (in seconds)
794
+ assert_equal(dualTR_hdr.get_zooms()[3], expected_TRs[0]/1000)
0 commit comments