#NEWLINE# def test_4d_time_double_index_slice( ) : #NEWLINE# #INDENT# ' read/write of 4D NMRPipe time domain (two index) first slice. ' #NEWLINE# ( dic , data ) = ng . pipe . read ( ( NMRPIPE_4D_TIME_2 % ( 1 , 1 ) ) ) #NEWLINE# assert ( data . shape == ( 8 , 5 ) ) #NEWLINE# assert ( data . dtype == 'complex64' ) #NEWLINE# assert ( data [ ( 0 , 0 ) ] . real == 1.0 ) #NEWLINE# assert ( data [ ( 0 , 0 ) ] . imag == ( - 1.0 ) ) #NEWLINE# assert ( data [ ( 0 , 1 ) ] . real == 2.0 ) #NEWLINE# assert ( data [ ( 0 , 1 ) ] . imag == ( - 2.0 ) ) #NEWLINE# assert ( data [ ( 1 , 0 ) ] . real == 1 ) #NEWLINE# assert ( data [ ( 1 , 0 ) ] . imag == ( - 1 ) ) #NEWLINE# check_simple_roundtrip ( dic , data )