#NEWLINE# @ testing . requires_testing_data #NEWLINE# @ requires_nibabel ( vox2ras_tkr = True ) #NEWLINE# def test_mgz_header( ) : #NEWLINE# #INDENT# 'Test MGZ header reading' #NEWLINE# header = _get_mgz_header ( fname_mri ) #NEWLINE# mri_hdr = _get_mri_header ( fname_mri ) #NEWLINE# assert_allclose ( mri_hdr . get_data_shape ( ) , header [ 'dims' ] ) #NEWLINE# assert_allclose ( mri_hdr . get_vox2ras_tkr ( ) , header [ 'vox2ras_tkr' ] ) #NEWLINE# assert_allclose ( mri_hdr . get_ras2vox ( ) , mri_hdr [ 'ras2vox' ] )