((x[0], y[0]), (x[1], y[1]), (x[2], y[2]))) # finish arrival picking and show arrivals sonic_plugin.shapeControlWidget.okButton.click() # load new data_set (testing stability) filename = [ test_data_path + "Hydrostatic w sonic/" + \ "_Training_Hydrostatic with Sonic endcaps_Berea Mechanical Testing _2015-04-24_001.clf", u'*.clf'] win.load(filename) # now load new sonic data sonic_dir = test_data_path + "Hydrostatic w sonic/" files = os.listdir(sonic_dir) for i in range(len(files)): files[i] = os.path.join(sonic_dir, files[i]) sonic_plugin.loadData(files) sonic_plugin.bindData() win.slider.setInterval([0.1, 0.9]) # now activate old dataset data_set = "_Training_Pc=1500 psi Sonic endcaps_Berea Mechanical Testing _2015-04-27_001" win.setCurrentDataSet(data_set) data_set = "_Training_Hydrostatic with Sonic endcaps_Berea Mechanical Testing _2015-04-24_001" win.setCurrentDataSet(data_set) # win.close() # App.exec_()
assert not win.tabWidget.isTabEnabled(sonic_tab_index) # now load new sonic data sonic_dir = test_data_path + data_set2_sonic_dir files = os.listdir(sonic_dir) for i in range(len(files)): files[i] = os.path.join(sonic_dir, files[i]) sonic_plugin.loadData(files) sonic_plugin.bindData() win.slider.setInterval([0.1, 0.9]) # now activate old dataset data_set1 = "_Training_Pc=1500 psi Sonic endcaps_Berea Mechanical Testing _2015-04-27_001" win.setCurrentDataSet(data_set1) win.slider.setInterval([0.2, 0.3]) data_set2 = "_Training_Hydrostatic with Sonic endcaps_Berea Mechanical Testing _2015-04-24_001" win.setCurrentDataSet(data_set2) win.slider.setInterval([0.1, 0.9]) win.setCurrentDataSet(data_set1) win.slider.setInterval([0.5, 0.7]) sonic_plugin.invertYAction.trigger() # test autoscale sonic_plugin.sonicViewer.plots['P'].setXRange(0, 200) # sonic_plugin.autoScaleAction.trigger() # Fourrier analysis sonic_plugin.waveFormAction.trigger()
# finish arrival picking and show arrivals sonic_plugin.shapeControlWidget.okButton.click() # load new data_set (testing stability) filename = [ test_data_path + "Hydrostatic w sonic/" + \ "_Training_Hydrostatic with Sonic endcaps_Berea Mechanical Testing _2015-04-24_001.clf", u'*.clf'] win.load(filename) # now load new sonic data sonic_dir = test_data_path + "Hydrostatic w sonic/" files = os.listdir(sonic_dir) for i in range(len(files)): files[i] = os.path.join(sonic_dir, files[i]) sonic_plugin.loadData(files) sonic_plugin.bindData() win.slider.setInterval([0.1, 0.9]) # now activate old dataset data_set = "_Training_Pc=1500 psi Sonic endcaps_Berea Mechanical Testing _2015-04-27_001" win.setCurrentDataSet(data_set) data_set = "_Training_Hydrostatic with Sonic endcaps_Berea Mechanical Testing _2015-04-24_001" win.setCurrentDataSet(data_set) # win.close() # App.exec_()