#NEWLINE# def test_frame_mode_fail( ) : #NEWLINE# #INDENT# detector_size = ( 256 , 256 ) #NEWLINE# pixel_size = ( ( 0.0135 * 8 ) , ( 0.0135 * 8 ) ) #NEWLINE# calibrated_center = ( ( 256 / 2.0 ) , ( 256 / 2.0 ) ) #NEWLINE# dist_sample = 355.0 #NEWLINE# energy = 640 #NEWLINE# hc_over_e = 12398.4 #NEWLINE# wavelength = ( hc_over_e / wavelength ) #NEWLINE# ub_mat = np . array ( [ [ ( - 0.01231028454 ) , 0.7405370482 , 0.06323870032 ] , [ 0.4450897473 , 0.04166852402 , ( - 0.9509449389 ) ] , [ ( - 0.7449130975 ) , 0.01265920962 , ( - 0.5692399963 ) ] ] ) #NEWLINE# setting_angles = np . array ( [ [ 40.0 , 15.0 , 30.0 , 25.0 , 10.0 , 5.0 ] , [ 90.0 , 60.0 , 0.0 , 30.0 , 10.0 , 5.0 ] ] ) #NEWLINE# pdict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# pdict [ 'setting_angles' ] = setting_angles #NEWLINE# pdict [ 'detector_size' ] = detector_size #NEWLINE# pdict [ 'pixel_size' ] = pixel_size #NEWLINE# pdict [ 'calibrated_center' ] = calibrated_center #NEWLINE# pdict [ 'dist_sample' ] = dist_sample #NEWLINE# pdict [ 'wavelength' ] = wavelength #NEWLINE# pdict [ 'ub' ] = ub_mat #NEWLINE# for fails in [ 0 , 5 , 'cat' ] : #NEWLINE# #INDENT# ( yield ( _process_to_q_exception , pdict , fails ) )