Best Python code snippet using avocado_python
log.py
Source:log.py
...8checkpoint toplevel widget mapped Basics9findWidget('Basics').resize(500, 300)10findWidget('Basics:Next').clicked()11assert tests.tutorialPageCheck(1)12findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.6542056074766e+00)13findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.3084112149533e+00)14findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.9626168224299e+00)15findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0616822429907e+01)16findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3271028037383e+01)17findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.8579439252336e+01)18findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.6542056074766e+01)19findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.9196261682243e+01)20findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.1850467289720e+01)21findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.7158878504673e+01)22findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.9813084112150e+01)23findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.2467289719626e+01)24findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.5121495327103e+01)25findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.0429906542056e+01)26findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.3084112149533e+01)27findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.1046728971963e+01)28findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.9009345794393e+01)29findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.6971962616822e+01)30findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.9626168224299e+01)31findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 8.2280373831776e+01)32findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 8.4934579439252e+01)33findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.2897196261682e+01)34findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.8205607476636e+01)35findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0882242990654e+02)36findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1147663551402e+02)37findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1413084112150e+02)38findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1678504672897e+02)39findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2209345794393e+02)40findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2474766355140e+02)41findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2740186915888e+02)42findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3005607476636e+02)43findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3271028037383e+02)44findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3801869158879e+02)45findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4067289719626e+02)46findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4332710280374e+02)47findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.5659813084112e+02)48findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.6190654205607e+02)49findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.7517757009346e+02)50findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.8048598130841e+02)51findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.8844859813084e+02)52findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.9375700934579e+02)53findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.1233644859813e+02)54findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.2295327102804e+02)55findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.2560747663551e+02)56findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.3091588785047e+02)57findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.3887850467290e+02)58findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.4153271028037e+02)59findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.5214953271028e+02)60findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.5480373831776e+02)61findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.6807476635514e+02)62findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.7072897196262e+02)63findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.7338317757009e+02)64findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.7603738317757e+02)65findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8134579439252e+02)66findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8400000000000e+02)67findWidget('Basics:Next').clicked()68findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8000000000000e+01)69findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 0.0000000000000e+00)70findWidget('Basics:Next').clicked()71findWidget('Basics:Next').clicked()72findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.5600000000000e+00)73findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.6000000000000e+00)74findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.6720000000000e+01)75findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.8240000000000e+01)76findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8880000000000e+01)77findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.6480000000000e+01)78findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.5600000000000e+01)79findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.1680000000000e+01)80findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.4720000000000e+01)81findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.7760000000000e+01)82findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.2320000000000e+01)83findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.3840000000000e+01)84findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.8400000000000e+01)85findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.2960000000000e+01)86findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.4480000000000e+01)87findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.6000000000000e+01)88findWidget('Basics:Next').clicked()89findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.4000000000000e+01)90findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.1333333333333e+01)91findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.9536231884058e+01)92findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.7739130434783e+01)93findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.0550724637681e+01)94findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8753623188406e+01)95findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.5159420289855e+01)96findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.3362318840580e+01)97findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.1565217391304e+01)98findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.7971014492754e+01)99findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2579710144928e+01)100findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 8.9855072463768e+00)101findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.1884057971014e+00)102findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.3913043478261e+00)103findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.5942028985507e+00)104findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.7971014492754e+00)105findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 0.0000000000000e+00)106findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.5942028985507e+00)107findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.3913043478261e+00)108findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.1884057971014e+00)109findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 8.9855072463768e+00)110findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0782608695652e+01)111findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2579710144928e+01)112findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.6173913043478e+01)113findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.7971014492754e+01)114findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.9768115942029e+01)115findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.1565217391304e+01)116findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.6956521739130e+01)117findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8753623188406e+01)118findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.4144927536232e+01)119findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.7739130434783e+01)120findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.9536231884058e+01)121findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.1333333333333e+01)122findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.6724637681159e+01)123findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.3913043478261e+01)124findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.1101449275362e+01)125findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.8289855072464e+01)126findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.3681159420290e+01)127findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.5478260869565e+01)128findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 8.4463768115942e+01)129findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 8.6260869565217e+01)130findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 8.8057971014493e+01)131findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.3449275362319e+01)132findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.5246376811594e+01)133findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.7043478260870e+01)134findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.8840579710145e+01)135findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0063768115942e+02)136findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0423188405797e+02)137findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0602898550725e+02)138findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0782608695652e+02)139findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0962318840580e+02)140findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1142028985507e+02)141findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1321739130435e+02)142findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1681159420290e+02)143findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1860869565217e+02)144findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2040579710145e+02)145findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2220289855072e+02)146findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2400000000000e+02)147findWidget('Basics').resize(500, 300)148findWidget('OOF2:Navigation:Next').clicked()149assert tests.mainPageCheck('Microstructure')150assert tests.msPageSensitizationCheck0()151findWidget('OOF2:Microstructure Page:Pane').set_position(221)152findWidget('Basics:Next').clicked()153findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.2000000000000e+01)154findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.2810126582278e+01)155findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.4784810126582e+01)156findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.6759493670886e+01)157findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.8734177215190e+01)158findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2045569620253e+02)159findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2637974683544e+02)160findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3032911392405e+02)161findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3230379746835e+02)162findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3427848101266e+02)163findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3822784810127e+02)164findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4020253164557e+02)165findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4217721518987e+02)166findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4415189873418e+02)167findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4612658227848e+02)168findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4810126582278e+02)169findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.5007594936709e+02)170findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.5205063291139e+02)171findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.5402531645570e+02)172findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.5600000000000e+02)173findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.5205063291139e+02)174findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4415189873418e+02)175findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4217721518987e+02)176findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4020253164557e+02)177findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3822784810127e+02)178findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3625316455696e+02)179findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3230379746835e+02)180findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3032911392405e+02)181findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2835443037975e+02)182findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2637974683544e+02)183findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2440506329114e+02)184findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2243037974684e+02)185findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2045569620253e+02)186findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1848101265823e+02)187findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1650632911392e+02)188findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1453164556962e+02)189findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1255696202532e+02)190findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1058227848101e+02)191findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0860759493671e+02)192findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0663291139241e+02)193findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0465822784810e+02)194findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0268354430380e+02)195findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0070886075949e+02)196findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.8734177215190e+01)197findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.6759493670886e+01)198findWidget('OOF2:Microstructure Page:NewFromFile').clicked()199checkpoint toplevel widget mapped Dialog-Load Image and create Microstructure200findWidget('Dialog-Load Image and create Microstructure').resize(342, 144)201findWidget('Dialog-Load Image and create Microstructure:filename').set_text('.')202findWidget('Dialog-Load Image and create Microstructure:filename').set_text('..')203findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../')204findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../.')205findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../..')206findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../')207findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../e')208findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../ex')209findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../exa')210findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../exam')211findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../examp')212findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../exampl')213findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../example')214findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../examples')215findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../examples/')216findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../examples/s')217findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../examples/sm')218findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../examples/sma')219findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../examples/smal')220findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../examples/small')221findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../examples/small.')222findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../examples/small.p')223findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../examples/small.pp')224findWidget('Dialog-Load Image and create Microstructure:filename').set_text('../../examples/small.ppm')225findWidget('Dialog-Load Image and create Microstructure:gtk-ok').clicked()226findWidget('OOF2:Microstructure Page:Pane').set_position(230)227checkpoint meshable button set228checkpoint microstructure page sensitized229checkpoint pixel page updated230checkpoint active area status updated231checkpoint mesh bdy page updated232checkpoint boundary page updated233checkpoint skeleton selection page grouplist234checkpoint skeleton selection page groups sensitized235checkpoint skeleton selection page updated236checkpoint microstructure page sensitized237checkpoint OOF.Microstructure.Create_From_ImageFile238assert tests.whoNameCheck('Microstructure', ['small.ppm'])239assert tests.treeViewColCheck('OOF2:Microstructure Page:Microstructure', 0, ['small.ppm'])240assert tests.msPageSensitizationCheck1()241findWidget('Basics:Next').clicked()242findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 0.0000000000000e+00)243findMenu(findWidget('OOF2:MenuBar'), 'Windows:Graphics:New').activate()244findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(250)245checkpoint Graphics_1 Skeleton Info sensitized246checkpoint Graphics_1 Mesh Info sensitized247checkpoint toplevel widget mapped OOF2 Graphics 1248findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(693)249checkpoint selection info updated250checkpoint selection info updated251checkpoint selection info updated252checkpoint selection info updated253findWidget('OOF2 Graphics 1:Pane0').set_position(278)254findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(250)255findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(693)256findWidget('OOF2 Graphics 1:Pane0').set_position(278)257findWidget('OOF2 Graphics 1').resize(800, 400)258findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(250)259checkpoint contourmap info updated for Graphics_1260checkpoint OOF.Windows.Graphics.New261findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(693)262findWidget('OOF2 Graphics 1:Pane0').set_position(278)263assert tests.gfxWindowCheck(['Graphics_1'])264findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(259)265findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(717)266findWidget('OOF2 Graphics 1:Pane0').set_position(278)267findWidget('OOF2 Graphics 1').resize(800, 400)268findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.9122807017544e+00)269findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.8245614035088e+00)270findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1649122807018e+01)271findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4561403508772e+01)272findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.7473684210526e+01)273findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.9122807017544e+01)274findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.7859649122807e+01)275findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.3684210526316e+01)276findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.6596491228070e+01)277findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.9508771929825e+01)278findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.2421052631579e+01)279findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.5333333333333e+01)280findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.1157894736842e+01)281findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.4070175438596e+01)282findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.6982456140351e+01)283findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.2807017543860e+01)284findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.5719298245614e+01)285findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 8.1543859649123e+01)286findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 8.4456140350877e+01)287findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 8.7368421052632e+01)288findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.0280701754386e+01)289findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.9017543859649e+01)290findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0775438596491e+02)291findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1066666666667e+02)292findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1357894736842e+02)293findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1649122807018e+02)294findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1940350877193e+02)295findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2231578947368e+02)296findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2522807017544e+02)297findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2814035087719e+02)298findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3105263157895e+02)299findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3396491228070e+02)300findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3687719298246e+02)301findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3978947368421e+02)302findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4270175438596e+02)303findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4561403508772e+02)304findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.4852631578947e+02)305findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.5143859649123e+02)306findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.5726315789474e+02)307findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.6017543859649e+02)308findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.6308771929825e+02)309findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.6600000000000e+02)310findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.7182456140351e+02)311findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.8347368421053e+02)312findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.0094736842105e+02)313findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.2715789473684e+02)314findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.3007017543860e+02)315findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.4171929824561e+02)316findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.4463157894737e+02)317findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.4754385964912e+02)318findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.5336842105263e+02)319findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.5628070175439e+02)320findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.6210526315789e+02)321findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.6501754385965e+02)322findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.6792982456140e+02)323findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.7084210526316e+02)324findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.7375438596491e+02)325findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.7666666666667e+02)326findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.7957894736842e+02)327findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8249122807018e+02)328findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8540350877193e+02)329findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8831578947368e+02)330findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.9122807017544e+02)331findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.9414035087719e+02)332findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.9996491228070e+02)333findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.1743859649123e+02)334findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.2617543859649e+02)335findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.2908771929825e+02)336findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.3200000000000e+02)337findWidget('Basics:Next').clicked()338findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.4000000000000e+01)339findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.1040000000000e+01)340findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.9520000000000e+01)341findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.8000000000000e+01)342findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.4960000000000e+01)343findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.3440000000000e+01)344findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.1920000000000e+01)345findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8880000000000e+01)346findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.7360000000000e+01)347findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.9760000000000e+01)348findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2160000000000e+01)349findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.0800000000000e+00)350findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.5200000000000e+00)351findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 0.0000000000000e+00)352findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.5200000000000e+00)353findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.6000000000000e+00)354findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3680000000000e+01)355findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.4320000000000e+01)356findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.9520000000000e+01)357findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.4720000000000e+01)358findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.9920000000000e+01)359findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.6000000000000e+01)360findWidget('OOF2:Navigation:Next').clicked()361findWidget('OOF2').resize(593, 350)362findWidget('OOF2:Image Page:Pane').set_position(380)363findWidget('OOF2:Image Page:Group').clicked()364checkpoint toplevel widget mapped Dialog-AutoGroup365findWidget('Dialog-AutoGroup').resize(211, 72)366findWidget('Dialog-AutoGroup:gtk-ok').clicked()367checkpoint toplevel widget mapped OOF2 Activity Viewer368findWidget('OOF2 Activity Viewer').resize(400, 300)369findWidget('OOF2 Graphics 1:Pane0').set_position(278)370checkpoint contourmap info updated for Graphics_1371checkpoint meshable button set372checkpoint meshable button set373checkpoint microstructure page sensitized374checkpoint meshable button set375checkpoint meshable button set376checkpoint microstructure page sensitized377checkpoint meshable button set378checkpoint meshable button set379checkpoint microstructure page sensitized380checkpoint OOF.Image.AutoGroup381assert tests.countMSGroups('small.ppm') == 8382findWidget('OOF2:Navigation:Prev').clicked()383assert tests.msPageSensitizationCheck2()384assert tests.treeViewLength('OOF2:Microstructure Page:Pane:PixelGroups:GroupListScroll:GroupList') == 8385findWidget('Basics:Next').clicked()386findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2000000000000e+01)387findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.1200000000000e+00)388findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.6000000000000e+00)389findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.0800000000000e+00)390findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.0400000000000e+00)391findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 0.0000000000000e+00)392findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.5200000000000e+00)393findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.0400000000000e+00)394findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.6000000000000e+00)395findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.1200000000000e+00)396findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2160000000000e+01)397findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3680000000000e+01)398findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.5200000000000e+01)399findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.6720000000000e+01)400findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.9760000000000e+01)401findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.1280000000000e+01)402findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8880000000000e+01)403findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.0400000000000e+01)404findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.1920000000000e+01)405findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.3440000000000e+01)406findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.6480000000000e+01)407findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.9520000000000e+01)408findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.2560000000000e+01)409findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.5600000000000e+01)410findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.8640000000000e+01)411findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.0160000000000e+01)412findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.1680000000000e+01)413findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.3200000000000e+01)414findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.4720000000000e+01)415findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.6240000000000e+01)416findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.7760000000000e+01)417findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.9280000000000e+01)418findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.5360000000000e+01)419findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.6880000000000e+01)420findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.8400000000000e+01)421findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.1440000000000e+01)422findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.4480000000000e+01)423findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.6000000000000e+01)424findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.5360000000000e+01)425findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.1040000000000e+01)426findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 0.0000000000000e+00)427findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.0400000000000e+00)428findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.6000000000000e+00)429findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.1200000000000e+00)430findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0640000000000e+01)431findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.3680000000000e+01)432findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.5200000000000e+01)433findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.6720000000000e+01)434findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.8240000000000e+01)435findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.1280000000000e+01)436findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.2800000000000e+01)437findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.4320000000000e+01)438findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.5840000000000e+01)439findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.7360000000000e+01)440findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8880000000000e+01)441findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.0400000000000e+01)442findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.1920000000000e+01)443findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.3440000000000e+01)444findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.6480000000000e+01)445findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.8000000000000e+01)446findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.1040000000000e+01)447findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.2560000000000e+01)448findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.4080000000000e+01)449findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.5600000000000e+01)450findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.7120000000000e+01)451findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.8640000000000e+01)452findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.0160000000000e+01)453findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.1680000000000e+01)454findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.3200000000000e+01)455findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.4720000000000e+01)456findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.6240000000000e+01)457findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.7760000000000e+01)458findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.9280000000000e+01)459findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.0800000000000e+01)460findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.5360000000000e+01)461findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.6880000000000e+01)462findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.8400000000000e+01)463findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.9920000000000e+01)464findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.1440000000000e+01)465findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.4480000000000e+01)466findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.6000000000000e+01)467findWidget('Basics:Next').clicked()468findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8000000000000e+01)469findMenu(findWidget('OOF2:MenuBar'), 'File:Load:Script').activate()470checkpoint toplevel widget mapped Dialog-Script471findWidget('Dialog-Script').resize(194, 72)472findWidget('Dialog-Script:filename').set_text('.')473findWidget('Dialog-Script:filename').set_text('..')474findWidget('Dialog-Script:filename').set_text('../')475findWidget('Dialog-Script:filename').set_text('../.')476findWidget('Dialog-Script:filename').set_text('../..')477findWidget('Dialog-Script:filename').set_text('../../')478findWidget('Dialog-Script:filename').set_text('../../o')479findWidget('Dialog-Script:filename').set_text('../../oo')480findWidget('Dialog-Script:filename').set_text('../../oor')481findWidget('Dialog-Script:filename').set_text('../../oo')482findWidget('Dialog-Script:filename').set_text('../../o')483findWidget('Dialog-Script:filename').set_text('../../')484findWidget('Dialog-Script:filename').set_text('../../e')485findWidget('Dialog-Script:filename').set_text('../../ex')486findWidget('Dialog-Script:filename').set_text('../../exa')487findWidget('Dialog-Script:filename').set_text('../../exam')488findWidget('Dialog-Script:filename').set_text('../../examp')489findWidget('Dialog-Script:filename').set_text('../../exampl')490findWidget('Dialog-Script:filename').set_text('../../example')491findWidget('Dialog-Script:filename').set_text('../../examples')492findWidget('Dialog-Script:filename').set_text('../../examples/')493findWidget('Dialog-Script:filename').set_text('../../examples/e')494findWidget('Dialog-Script:filename').set_text('../../examples/er')495findWidget('Dialog-Script:filename').set_text('../../examples/err')496findWidget('Dialog-Script:filename').set_text('../../examples/erro')497findWidget('Dialog-Script:filename').set_text('../../examples/error')498findWidget('Dialog-Script:filename').set_text('../../examples/errorg')499findWidget('Dialog-Script:filename').set_text('../../examples/errorge')500findWidget('Dialog-Script:filename').set_text('../../examples/errorgen')501findWidget('Dialog-Script:filename').set_text('../../examples/errorgen.')502findWidget('Dialog-Script:filename').set_text('../../examples/errorgen.l')503findWidget('Dialog-Script:filename').set_text('../../examples/errorgen.lo')504findWidget('Dialog-Script:filename').set_text('../../examples/errorgen.log')505findWidget('Dialog-Script:gtk-ok').clicked()506checkpoint toplevel widget mapped Error507findWidget('Error').resize(592, 166)508findWidget('Error:gtk-ok').clicked()509findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.8875000000000e+01)510findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.1625000000000e+01)511findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.7125000000000e+01)512findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.1250000000000e+01)513findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.2625000000000e+01)514findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.4000000000000e+01)515findWidget('Basics:Next').clicked()516findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2000000000000e+01)517findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 0.0000000000000e+00)518findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.5942028985507e+00)519findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.1884057971014e+00)520findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.6173913043478e+01)521findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.7971014492754e+01)522findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.9768115942029e+01)523findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 2.6956521739130e+01)524findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 3.5942028985507e+01)525findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 4.8521739130435e+01)526findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 5.7507246376812e+01)527findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.2898550724638e+01)528findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 6.6492753623188e+01)529findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.0086956521739e+01)530findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.1884057971014e+01)531findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 7.9072463768116e+01)532findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 8.0869565217391e+01)533findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 8.6260869565217e+01)534findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 8.8057971014493e+01)535findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.1652173913043e+01)536findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.3449275362319e+01)537findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.5246376811594e+01)538findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.7043478260870e+01)539findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 9.8840579710145e+01)540findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0063768115942e+02)541findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0243478260870e+02)542findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0782608695652e+02)543findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.0962318840580e+02)544findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1142028985507e+02)545findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1321739130435e+02)546findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1501449275362e+02)547findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1681159420290e+02)548findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.1860869565217e+02)549findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2040579710145e+02)550findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2220289855072e+02)551findWidget('Basics:TutorialScroll').get_vadjustment().set_value( 1.2400000000000e+02)552findWidget('Basics:Close').clicked()553findMenu(findWidget('OOF2:MenuBar'), 'File:Quit').activate()554checkpoint toplevel widget mapped Questioner555findWidget('Questioner').resize(358, 94)...
FactoryController.py
Source:FactoryController.py
...36 self.value = requests.get(query).json()[0]['value']37 38 39 return(self.value)40 def set_value(self, value):41 self.value = value42 43 #print(payload)44 if self.id != '':45 query = self.address+'/api/tag/values'46 payload = [ {47 "id": self.id,48 "value": self.value49 }, ]50 #print(query)51 #print(payload)52 else:53 query = self.address+'/api/tag/values/by-name'54 payload = [ {55 "name": self.name,56 "value": self.value57 }, ]58 requests.put(query, json=payload)59class FIO_Controller:60 61 def __init__(self, address):62 self.address = address63 self.tag_table = []64 self.machines = {}65 self.run = self.attach_tag("FACTORY I/O (Run)")66 #self.check_simstat()67 # creates new tag object68 def attach_tag(self, tag_name, tag_id=''):69 temp_tag = Tag(self.address, tag_name, tag_id)70 self.tag_table.append(temp_tag)71 return temp_tag72 73 def attach_machine(self, name, machine):74 self.machines[name] = machine75 return machine76 77 ### WRITES BY-NAME78 def batch_write(self, payload):79 requests.put(self.address+'/api/tag/values/by-name', json=payload)80 81 def fetch_tags(self):82 for tg in self.tag_table:83 tg.get_value()84 def push_tags(self):85 for tg in self.tag_table:86 tg.set_value(tg.value) 87 def sim_start(self):88 self.run.set_value("true")89 90 def sim_pause(self):91 pass92 def check_simstat(self):93 if self.run.get_value() != 'true':94 # print('Controller: Start simulation!')95 return 096 else:97 return 198class Conveyor():99 # busy100 # actuator101 # laser102 # (rfid)103 # 104 def __init__(self, conv_tag: Tag, end_laser: Tag, rfid_reader=()):105 self.actuator = conv_tag106 self.laser = end_laser107 self.busy = False108 self.tasks = asyncio.Queue() # queue for upcoming tasks109 if rfid_reader != ():110 self.rfid_command, self.rfid_exec, self.rfid_iread, self.rfid_stat = rfid_reader111 # rfid stuff112 async def move(self):113 114 while( self.laser.get_value() == True ): 115 await asyncio.sleep(ASYNC_SLEEP_TIME)116 if self.actuator.value != True:117 self.actuator.set_value(True)118 self.actuator.set_value(False)119 return('1')120 async def accept(self):121 self.busy = True122 self.actuator.set_value(True)123 await self.move()124 async def transit_next(self):125 while( self.laser.get_value() == False ): 126 await asyncio.sleep(ASYNC_SLEEP_TIME)127 if self.actuator.value != True:128 self.actuator.set_value(True)129 self.actuator.set_value(False)130 self.busy = False131 def read_rfid(self):132 self.rfid_command.set_value(1)133 self.rfid_exec.set_value('true')134 rfid_data = self.rfid_iread.get_value()135 rfid_error = self.rfid_stat.get_value()136 if (rfid_error == 0):137 # print(rfid_data)138 None139 elif (rfid_error == 1):140 print("Error No Tag")141 elif (rfid_error == 2):142 print("Error Too Many Tags")143 else:144 print('Another Error')145 self.rfid_exec.set_value('false')146 return(rfid_data)147class Conv_Series(Conveyor):148 def __init__(self, end_laser: Tag, *convs, rfid_reader=()):149 super().__init__(convs[0], end_laser, rfid_reader)150 self.conv_chain = convs151 async def move(self):152 self.busy = True153 while( self.laser.get_value() == True ): 154 await asyncio.sleep(ASYNC_SLEEP_TIME)155 if self.conv_chain[0].value != True:156 for conv in self.conv_chain:157 conv.set_value(True)158 for conv in self.conv_chain:159 conv.set_value(False)160 return('1')161class Crossing_conveyor():162 def __init__(self, forw_tag, back_tag, left_tag, right_tag, capacity, laser_out, stop_tag = None, wait_time=DEFAULT_ACCEPT_TIME):163 self.forward = forw_tag164 self.back = back_tag165 self.left = left_tag166 self.right = right_tag167 self.capacity = capacity168 self.laser = laser_out169 self.stop_tag = stop_tag # barrier 170 self.wait_time = wait_time171 172 self.tasks = asyncio.Queue()173 self.directions = {'forward': self.forward, 'back': self.back, 'left': self.left, 'right': self.right }174 175 async def accept_to(self, direction):176 #self.stop_tag.set_value(True)177 self.directions[direction].set_value(True)178 while( self.capacity.get_value() == True ): 179 if self.directions[direction].value != True:180 self.directions[direction].set_value(True) # a little http optimiztion181 await asyncio.sleep(ASYNC_SLEEP_TIME)182 await asyncio.sleep(self.wait_time) # a little delay for better positioning183 self.directions[direction].set_value(False)184 return(1)185 186 async def move_to(self, direction): ## TODO multidirectional move187 self.directions[direction].set_value(True)188 await asyncio.sleep(3)189 self.directions[direction].set_value(False)190 return(1)191 192class Crane:193 # my first class)))194 def __init__(self, 195 mov_x_a: Tag,196 mov_z_a: Tag,197 targ_pos_a: Tag,198 at_mid_a: Tag,199 at_left_a: Tag,200 at_right_a: Tag,201 fork_left_a: Tag,202 fork_right_a: Tag,203 lift_a: Tag):204 self.mov_x_a = mov_x_a205 self.mov_z_a = mov_z_a206 self.targ_pos_a = targ_pos_a207 self.at_mid_a = at_mid_a208 self.at_left_a = at_left_a209 self.at_right_a = at_right_a210 self.fork_left_a = fork_left_a211 self.fork_right_a = fork_right_a212 self.lift_a = lift_a213 self.busy = False214 async def to_shelf(self, number):215 right = False216 # number - 1-54 Ð»ÐµÐ²Ð°Ñ ÑÑоÑона 55-108 - пÑÐ°Ð²Ð°Ñ ÑÑоÑона217 if (number > 54): 218 number = number % 54219 right = True220 # мозг ÑÑÑал пÑоÑÑиÑе:221 if (number == 108): number = 54222 self.busy = True223 self.fork_left_a.set_value(True)224 while(not(self.at_left_a.get_value())): await asyncio.sleep(0.1)225 self.lift_a.set_value(True)226 await asyncio.sleep(0.1)227 while(not(self.mov_z_a.get_value())): await asyncio.sleep(0.1)228 self.fork_left_a.set_value(False)229 while(not((self.at_mid_a.get_value()))): await asyncio.sleep(0.1)230 231 self.targ_pos_a.set_value(number)232 await asyncio.sleep(0.1)233 while (self.mov_z_a.get_value() or self.mov_x_a.get_value()): await asyncio.sleep(0.1)234 if (right):235 self.fork_right_a.set_value(True)236 while(not(self.at_right_a.get_value())): await asyncio.sleep(0.1)237 else:238 self.fork_left_a.set_value(True)239 while(not(self.at_left_a.get_value())): await asyncio.sleep(0.1)240 self.lift_a.set_value(False)241 await asyncio.sleep(0.1)242 while(self.mov_z_a.get_value()): await asyncio.sleep(0.1)243 244 if(right):245 self.fork_right_a.set_value(False)246 else:247 self.fork_left_a.set_value(False)248 while(not(self.at_mid_a.get_value())): await asyncio.sleep(0.1)249 self.targ_pos_a.set_value(55)250 await asyncio.sleep(0.1)251 while(self.mov_z_a.get_value()) or self.mov_x_a.get_value(): await asyncio.sleep(0.1)252 async def from_shelf(self, number):253 right = False254 # number - 1-54 Ð»ÐµÐ²Ð°Ñ ÑÑоÑона 55-108 - пÑÐ°Ð²Ð°Ñ ÑÑоÑона255 if (number > 54): 256 number = number % 54257 right = True258 # мозг ÑÑÑал пÑоÑÑиÑе:259 if (number == 108): number = 54260 self.busy = True261 self.targ_pos_a.set_value(number)262 await asyncio.sleep(0.1)263 while (self.mov_z_a.get_value() or self.mov_x_a.get_value()): await asyncio.sleep(0.1)264 if (right):265 self.fork_right_a.set_value(True)266 while(not(self.at_right_a.get_value())): await asyncio.sleep(0.1)267 else:268 self.fork_left_a.set_value(True)269 while(not(self.at_left_a.get_value())): await asyncio.sleep(0.1)270 271 self.lift_a.set_value(True)272 await asyncio.sleep(0.1)273 while(not(self.mov_z_a.get_value())): await asyncio.sleep(0.1)274 if (right):275 self.fork_right_a.set_value(False)276 else:277 self.fork_left_a.set_value(False)278 while(not((self.at_mid_a.get_value()))): await asyncio.sleep(0.1)279 self.targ_pos_a.set_value(55)280 await asyncio.sleep(0.1)281 while(self.mov_z_a.get_value()) or self.mov_x_a.get_value(): await asyncio.sleep(0.1)282 283 284 self.fork_right_a.set_value(True)285 while(not(self.at_right_a.get_value())): await asyncio.sleep(0.1)286 287 self.lift_a.set_value(False)288 await asyncio.sleep(0.1)289 while(self.mov_z_a.get_value()): await asyncio.sleep(0.1)290 291 self.fork_right_a.set_value(False)...
crane.py
Source:crane.py
...6import FactoryController as fio7SIM_ADDRESS = 'http://127.0.0.1:7410' #my VM address8async def item_to_shelf_A(number):9 10 fork_left_a.set_value(True)11 while(not(at_left_a.get_value())): await asyncio.sleep(0.1)12 13 lift_a.set_value(True)14 await asyncio.sleep(0.1)15 while(not(mov_z_a.get_value())): await asyncio.sleep(0.1)16 17 fork_left_a.set_value(False)18 while(not((at_mid_a.get_value()))): await asyncio.sleep(0.1)19 20 targ_pos_a.set_value(number)21 await asyncio.sleep(0.1)22 while (mov_z_a.get_value() or mov_x_a.get_value()): await asyncio.sleep(0.1)23 24 fork_left_a.set_value(True)25 while(not(at_left_a.get_value())): await asyncio.sleep(0.1)26 27 lift_a.set_value(False)28 await asyncio.sleep(0.1)29 while(mov_z_a.get_value()): await asyncio.sleep(0.1)30 31 fork_left_a.set_value(False)32 while(not(at_mid_a.get_value())): await asyncio.sleep(0.1)33 34 targ_pos_a.set_value(55)35 await asyncio.sleep(0.1)36 while(mov_z_a.get_value()) or mov_x_a.get_value(): await asyncio.sleep(0.1)37async def item_to_shelf_B(number):38 39 fork_left_b.set_value(True)40 while(not(at_left_b.get_value())): await asyncio.sleep(0.1)41 42 lift_b.set_value(True)43 await asyncio.sleep(0.1)44 while(not(mov_z_b.get_value())): await asyncio.sleep(0.1)45 46 fork_left_b.set_value(False)47 while(not((at_mid_b.get_value()))): await asyncio.sleep(0.1)48 49 targ_pos_b.set_value(number)50 await asyncio.sleep(0.1)51 while (mov_z_b.get_value() or mov_x_b.get_value()): await asyncio.sleep(0.1)52 53 fork_left_b.set_value(True)54 while(not(at_left_b.get_value())): await asyncio.sleep(0.1)55 56 lift_b.set_value(False)57 await asyncio.sleep(0.1)58 while(mov_z_b.get_value()): await asyncio.sleep(0.1)59 60 fork_left_b.set_value(False)61 while(not(at_mid_b.get_value())): await asyncio.sleep(0.1)62 63 targ_pos_b.set_value(55)64 await asyncio.sleep(0.1)65 while(mov_z_b.get_value()) or mov_x_b.get_value(): await asyncio.sleep(0.1)66async def item_from_shelf_A(number):67 68 targ_pos_a.set_value(number)69 await asyncio.sleep(0.1)70 while (mov_z_a.get_value() or mov_x_a.get_value()): await asyncio.sleep(0.1)71 fork_left_a.set_value(True)72 while(not(at_left_a.get_value())): await asyncio.sleep(0.1)73 74 lift_a.set_value(True)75 await asyncio.sleep(0.1)76 while(not(mov_z_a.get_value())): await asyncio.sleep(0.1)77 78 fork_left_a.set_value(False)79 while(not((at_mid_a.get_value()))): await asyncio.sleep(0.1)80 targ_pos_a.set_value(55)81 await asyncio.sleep(0.1)82 while(mov_z_a.get_value()) or mov_x_a.get_value(): await asyncio.sleep(0.1)83 84 85 fork_right_a.set_value(True)86 while(not(at_right_a.get_value())): await asyncio.sleep(0.1)87 88 lift_a.set_value(False)89 await asyncio.sleep(0.1)90 while(mov_z_a.get_value()): await asyncio.sleep(0.1)91 92 fork_right_a.set_value(False)93 while(not(at_mid_a.get_value())): await asyncio.sleep(0.1)94 95async def item_from_shelf_B(number):96 97 targ_pos_b.set_value(number)98 await asyncio.sleep(0.1)99 while (mov_z_b.get_value() or mov_x_b.get_value()): await asyncio.sleep(0.1)100 fork_left_b.set_value(True)101 while(not(at_left_b.get_value())): await asyncio.sleep(0.1)102 103 lift_b.set_value(True)104 await asyncio.sleep(0.1)105 while(not(mov_z_b.get_value())): await asyncio.sleep(0.1)106 107 fork_left_b.set_value(False)108 while(not((at_mid_b.get_value()))): await asyncio.sleep(0.1)109 targ_pos_b.set_value(55)110 await asyncio.sleep(0.1)111 while(mov_z_b.get_value()) or mov_x_b.get_value(): await asyncio.sleep(0.1)112 113 fork_right_b.set_value(True)114 while(not(at_right_b.get_value())): await asyncio.sleep(0.1)115 116 lift_b.set_value(False)117 await asyncio.sleep(0.1)118 while(mov_z_b.get_value()): await asyncio.sleep(0.1)119 120 fork_right_b.set_value(False)121 while(not(at_mid_b.get_value())): await asyncio.sleep(0.1)122 123async def task_controll():124 125 # СнаÑала вÑполнÑеÑÑÑ ÑÑо до конÑа126 await asyncio.gather(item_to_shelf_A(15), item_to_shelf_B(29))127 # поÑом вÑполнÑеÑÑÑ ÑÑо128 await asyncio.gather(item_from_shelf_A(15), item_from_shelf_B(29))129if __name__ == '__main__':130 controller = fio.FIO_Controller(SIM_ADDRESS)131 ## Tag declaration132 print('Tag declaration')133 mov_x_a = controller.attach_tag('Moving X A')134 mov_z_a = controller.attach_tag('Moving Z A')...
blender_render.py
Source:blender_render.py
...9from rprblender.utils.user_settings import get_user_settings10def initializeRPR():11 scene = bpy.context.scene12 enable_rpr_render(scene)13 set_value(scene.rpr.limits, 'seconds', 1)14 bpy.ops.render.render()15def set_value(path, name, value):16 if hasattr(path, name):17 setattr(path, name, value)18 else:19 print("No attribute found {{}}".format(name))20def get_value(path, name):21 if hasattr(path, name):22 return getattr(path, name)23 else:24 print("No attribute found ")25def enable_rpr_render(scene):26 if not addon_utils.check('rprblender')[0]:27 addon_utils.enable('rprblender', default_set=True, persistent=False, handle_error=None)28 set_value(scene.render, 'engine', 'RPR')29def set_render_device():30 render_device_settings = get_user_settings().final_devices31 set_value(render_device_settings, 'cpu_state', False)32 render_device_settings.gpu_states[0] = True33 device_name = pyrpr.Context.gpu_devices[0]['name']34 return device_name35def render(scene_path):36 # open scene37 bpy.ops.wm.open_mainfile(filepath=os.path.join(r"{res_path}", scene_path))38 # get scene name39 scene = bpy.context.scene40 split_name = bpy.path.basename(bpy.context.blend_data.filepath).split('.')41 scenename = '.'.join(split_name[0:-1])42 # enable rpr43 enable_rpr_render(scene)44 # Render device in RPR45 device_name = set_render_device()46 if {min_samples}:47 set_value(scene.rpr.limits, 'min_samples', {min_samples})48 if {max_samples}:49 set_value(scene.rpr.limits, 'max_samples', {max_samples})50 if {noise_threshold}:51 set_value(scene.rpr.limits, 'noise_threshold', {noise_threshold})52 set_value(scene.rpr.limits, 'seconds', 1800)53 if {width}:54 set_value(bpy.context.scene.render, 'resolution_x', {width})55 if {height}:56 set_value(bpy.context.scene.render, 'resolution_y', {height})57 if '{engine}':58 if '{engine}' == 'Tahoe':59 set_value(scene.rpr, 'render_quality', 'FULL')60 elif '{engine}' == 'Northstar':61 set_value(scene.rpr, 'render_quality', 'FULL2')62 # image format63 set_value(scene.render.image_settings, 'quality', 100)64 set_value(scene.render.image_settings, 'compression', 0)65 set_value(scene.render.image_settings, 'color_mode', 'RGB')66 set_value(scene.render.image_settings, 'file_format', 'JPEG')67 # output68 set_value(scene.render, 'filepath', os.path.join(r"{res_path}", "Output", scenename))69 set_value(scene.render, 'use_placeholder', True)70 set_value(scene.render, 'use_file_extension', True)71 set_value(scene.render, 'use_overwrite', True)72 # start render animation73 render_time = 074 startFrame = {startFrame}75 endFrame = {endFrame}76 if startFrame == endFrame:77 if startFrame != 1:78 scene.frame_set(startFrame)79 set_value(scene.render, 'filepath', os.path.join(r"{res_path}", "Output", scenename + "_" + str(startFrame).zfill(3)))80 start_time = datetime.datetime.now()81 bpy.ops.render.render(write_still=True, scene=scene_path)82 render_time += (datetime.datetime.now() - start_time).total_seconds()83 else:84 for each in range(startFrame, endFrame+1):85 scene.frame_set(each)86 set_value(scene.render, 'filepath', os.path.join(r"{res_path}", "Output", scenename + "_" + str(each).zfill(3)))87 start_time = datetime.datetime.now()88 bpy.ops.render.render(write_still=True, scene=scene_path)89 render_time += (datetime.datetime.now() - start_time).total_seconds()90 # results json91 report = {{}}92 report['render_time'] = round(render_time, 2)93 report['width'] = get_value(bpy.context.scene.render, 'resolution_x')94 report['height'] = get_value(bpy.context.scene.render, 'resolution_y')95 report['min_samples'] = get_value(scene.rpr.limits, 'min_samples')96 report['max_samples'] = get_value(scene.rpr.limits, 'max_samples')97 report['noise_threshold'] = get_value(scene.rpr.limits, 'noise_threshold')98 with open(os.path.join(r"{res_path}", "render_info.json"), 'w') as f:99 json.dump(report, f, indent=' ')100if __name__ == "__main__":...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!