#NEWLINE# def test_make_uc( ) : #NEWLINE# #INDENT# ' ng.pipe.make_uc ' #NEWLINE# ( dic , data ) = ng . pipe . read ( NMRPIPE_2D_FREQ ) #NEWLINE# uc = ng . pipe . make_uc ( dic , data ) #NEWLINE# assert ( uc . _size == 8 ) #NEWLINE# assert ( uc . _cplx is False ) #NEWLINE# assert ( uc . _sw == 50000.0 ) #NEWLINE# assert ( uc . _obs == 500.0 ) #NEWLINE# assert ( round ( uc . _car ) == 2350.0 ) #NEWLINE# uc = ng . pipe . make_uc ( dic , data , 1 ) #NEWLINE# assert ( uc . _size == 8 ) #NEWLINE# assert ( uc . _cplx is False ) #NEWLINE# assert ( uc . _sw == 50000.0 ) #NEWLINE# assert ( uc . _obs == 500.0 ) #NEWLINE# assert ( round ( uc . _car ) == 2350.0 ) #NEWLINE# uc = ng . pipe . make_uc ( dic , data , 0 ) #NEWLINE# assert ( uc . _size == 2 ) #NEWLINE# assert ( uc . _cplx is False ) #NEWLINE# assert ( uc . _sw == 20000.0 ) #NEWLINE# assert ( uc . _obs == 125.0 ) #NEWLINE# assert ( round ( uc . _car ) == 12375.0 )