#NEWLINE# def test_2d_time_tp( ) : #NEWLINE# #INDENT# ' read/write of 2D NMRPipe time domain file transposed. ' #NEWLINE# ( dic , data ) = ng . pipe . read ( NMRPIPE_2D_TIME_TP ) #NEWLINE# assert ( data . shape == ( 16 , 2 ) ) #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 == 1.0 ) #NEWLINE# assert ( data [ ( 0 , 1 ) ] . imag == 1.0 ) #NEWLINE# assert ( data [ ( 1 , 0 ) ] . real == ( - 1.0 ) ) #NEWLINE# assert ( data [ ( 1 , 0 ) ] . imag == ( - 1.0 ) ) #NEWLINE# assert ( data [ ( 2 , 0 ) ] . real == 2.0 ) #NEWLINE# assert ( data [ ( 2 , 0 ) ] . imag == 2.0 ) #NEWLINE# check_simple_roundtrip ( dic , data )