コード例 #1
0
ファイル: sonic_test.py プロジェクト: rksin8/TCI
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])

sonic_plugin = win.plugins[-1]
sonic_plugin.loadData(files)
sonic_plugin.addSonicTab()
sonic_plugin.bindData()
sonic_plugin.sonicViewer.plot()
sonic_plugin.createYActions()
コード例 #2
0
ファイル: geo_test1.py プロジェクト: rksin8/TCI
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_()