#NEWLINE# def test_1d_ext( ) : #NEWLINE# #INDENT# ' read/write of 1D NMRPipe file with an EXTacted region. ' #NEWLINE# ( dic , data ) = ng . pipe . read ( NMRPIPE_1D_EXT ) #NEWLINE# assert ( data . shape == ( 8 , ) ) #NEWLINE# assert ( data . dtype == 'float32' ) #NEWLINE# assert ( data [ 0 ] . real == 1.0 ) #NEWLINE# assert ( data [ 1 ] . real == 2.0 ) #NEWLINE# check_simple_roundtrip ( dic , data ) #NEWLINE# check_ppm_limits ( dic , data , 0 , [ 130.25 , 86.5 ] )