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