import sys, os import TCI from TCI.widgets.DataViewer import DataViewer from PySide import QtGui App = QtGui.QApplication(sys.argv) win = DataViewer() win.show() test_data_path = TCI.__path__[0] + "/test/test-data/" filename = [ test_data_path + "1500psi/" + \ "_Training_Pc=1500 psi Sonic endcaps_Berea Mechanical Testing _2015-04-27_001.clf", u'*.clf' ] win.load(filename) win.tree.boxes["Sig1"].setChecked(True) # find mohr circle plugin mc = win.plugins[1] mc.addPointAction.trigger() # print(mc.cursors) mc.cursors[0].translate(700, 0) mc.cursors[0].moveToNearest() # load second dataset filename = [ test_data_path + "Unconfined/" + \
''' Description: ''' test_data_path = TCI.__path__[0] + "/test/test-data/" data_set1 = "_Training_Pc=1500 psi Sonic endcaps_Berea Mechanical Testing _2015-04-27_001.clf" data_set2 = "_Training_Hydrostatic with Sonic endcaps_Berea Mechanical Testing _2015-04-24_001.clf" data_set1_dir = "1500psi/" data_set2_dir = "Hydrostatic w sonic/" data_set1_sonic_dir = "1500psi/1500pc" data_set2_sonic_dir = "Hydrostatic w sonic/" App = QtGui.QApplication(sys.argv) win = DataViewer() win.setGeometry(2200, 400, 800, 600) win.show() filename = [test_data_path + data_set1_dir + data_set1, u'*.clf'] win.load(filename) win.tree.boxes["Sig1"].setChecked(True) # SONIC WIDGET TESTING # win.loadSonicDataAction.trigger() sonic_dir = test_data_path + data_set1_sonic_dir files = os.listdir(sonic_dir) for i in range(len(files)): files[i] = os.path.join(sonic_dir, files[i])
import sys, os from TCI.widgets.DataViewer import DataViewer from PySide import QtGui App = QtGui.QApplication(sys.argv) win = DataViewer() win.show() App.exec_()
from PySide import QtGui import sys, os import TCI from TCI.widgets.DataViewer import DataViewer App = QtGui.QApplication(sys.argv) win = DataViewer() # win.showMaximized() win.show() # win.showFullScreen() # print(TCI.__path__) test_data_path = TCI.__path__[0] + "/test/test-data/" datafile = [ test_data_path + "1500psi/" + \ "_Training_Pc=1500 psi Sonic endcaps_Berea Mechanical Testing _2015-04-27_001.clf", u'*.clf' ] win.load(datafile) win.tree.boxes["Sig1"].setChecked(True) win.plt.setCrossHairMode(True) win.plt.setCrossHairMode(False) win.settings.show() # win.close() # App.exec_()
import sys, os import TCI from TCI.widgets.DataViewer import DataViewer from PySide import QtGui App = QtGui.QApplication(sys.argv) win = DataViewer() win.show() test_data_path = TCI.__path__[0] + "/test/test-data/" filename = [ test_data_path + "1500psi/" + \ "_Training_Pc=1500 psi Sonic endcaps_Berea Mechanical Testing _2015-04-27_001.clf", u'*.clf'] win.load(filename) win.tree.boxes["Sig1"].setChecked(True) combo = win.plugins[2] # Combolist check combo.addSceneAction.trigger() combo.activateAction.trigger() combo.plotButton.click() # win.close() # App.exec_()
import sys, os import TCI from TCI.widgets.DataViewer import DataViewer from PySide import QtGui App = QtGui.QApplication(sys.argv) win = DataViewer() # win.showMaximized() win.show() # win.showFullScreen() test_data_path = TCI.__path__[0] + "/test/test-data/" filename = [ test_data_path + "1500psi/" + \ "_Training_Pc=1500 psi Sonic endcaps_Berea Mechanical Testing _2015-04-27_001.clf", u'*.clf'] win.load(filename) win.tree.boxes["Sig1"].setChecked(True) # SONIC WIDGET TESTING # win.loadSonicDataAction.trigger() sonic_dir = test_data_path + "1500psi/1500pc" files = os.listdir(sonic_dir) for i in range(len(files)): files[i] = os.path.join(sonic_dir, files[i]) sonic_plugin = win.plugins[-1] sonic_plugin.loadData(files) sonic_plugin.addSonicTab()
import sys, os import TCI from TCI.widgets.DataViewer import DataViewer from PySide import QtGui App = QtGui.QApplication(sys.argv) win = DataViewer() # win.showMaximized() win.show() # win.showFullScreen() test_data_path = TCI.__path__[0] + "/test/test-data/" filename = [ test_data_path + "1500psi/" + \ "_Training_Pc=1500 psi Sonic endcaps_Berea Mechanical Testing _2015-04-27_001.clf", u'*.clf'] win.load(filename) win.tree.boxes["Sig1"].setChecked(True) # SONIC WIDGET TESTING # win.loadSonicDataAction.trigger() sonic_dir = test_data_path + "1500psi/1500pc" files = os.listdir(sonic_dir) for i in range(len(files)): files[i] = os.path.join(sonic_dir, files[i]) sonic_plugin = win.plugins[-1] sonic_plugin.loadData(files)