#NEWLINE# def test_3d_time( ) : #NEWLINE# #INDENT# ' read/write of 3D NMRPipe time domain file. ' #NEWLINE# ( dic , data ) = ng . pipe . read ( NMRPIPE_3D_TIME ) #NEWLINE# assert ( data . shape == ( 4 , 6 , 8 ) ) #NEWLINE# assert ( data . dtype == 'complex64' ) #NEWLINE# assert ( data [ ( 0 , 0 , 0 ) ] . real == 1.0 ) #NEWLINE# assert ( dic [ ( 0 , 0 , 0 ) ] . imag == ( - 1.0 ) ) #NEWLINE# assert ( data [ ( 0 , 0 , 1 ) ] . real == 2.0 ) #NEWLINE# assert ( data [ ( 0 , 0 , 1 ) ] . imag == ( - 2.0 ) ) #NEWLINE# assert ( data [ ( 0 , 1 , 0 ) ] . real == 1 ) #NEWLINE# assert ( data [ ( 0 , 1 , 0 ) ] . imag == ( - 1 ) ) #NEWLINE# assert ( data [ ( 1 , 0 , 0 ) ] . real == 1 ) #NEWLINE# assert ( data [ ( 1 , 0 , 0 ) ] . imag == ( - 1 ) ) #NEWLINE# check_simple_roundtrip ( dic , data , 1 )