#NEWLINE# def test_3d_freq_slice( ) : #NEWLINE# #INDENT# ' read/write of 3D NMRPipe frequency domain first slice. ' #NEWLINE# ( dic , data ) = ng . pipe . read ( ( NMRPIPE_3D_FREQ % 1 ) ) #NEWLINE# assert ( data . shape == ( 3 , 8 ) ) #NEWLINE# assert ( data . dtype == 'float32' ) #NEWLINE# assert ( data [ ( 0 , 0 ) ] == 1.0 ) #NEWLINE# assert ( data [ ( 0 , 1 ) ] == 1.0 ) #NEWLINE# assert ( data [ ( 1 , 0 ) ] == 1.0 ) #NEWLINE# check_simple_roundtrip ( dic , data ) #NEWLINE# check_ppm_limits ( dic , data , 0 , [ 152.33 , 45.67 ] ) #NEWLINE# check_ppm_limits ( dic , data , 1 , [ 54.7 , ( - 32.8 ) ] )