Surface NMR processing and inversion GUI
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. # -*- coding: utf-8 -*-
  2. # Form implementation generated from reading ui file 'main.ui'
  3. #
  4. # Created: Fri Jan 11 23:34:58 2013
  5. # by: PyQt4 UI code generator 4.9.6
  6. #
  7. # WARNING! All changes made in this file will be lost!
  8. from PyQt4 import QtCore, QtGui
  9. try:
  10. _fromUtf8 = QtCore.QString.fromUtf8
  11. except AttributeError:
  12. def _fromUtf8(s):
  13. return s
  14. try:
  15. _encoding = QtGui.QApplication.UnicodeUTF8
  16. def _translate(context, text, disambig):
  17. return QtGui.QApplication.translate(context, text, disambig, _encoding)
  18. except AttributeError:
  19. def _translate(context, text, disambig):
  20. return QtGui.QApplication.translate(context, text, disambig)
  21. class Ui_MainWindow(object):
  22. def setupUi(self, MainWindow):
  23. MainWindow.setObjectName(_fromUtf8("MainWindow"))
  24. MainWindow.resize(1000, 980)
  25. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Expanding)
  26. sizePolicy.setHorizontalStretch(0)
  27. sizePolicy.setVerticalStretch(0)
  28. sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
  29. MainWindow.setSizePolicy(sizePolicy)
  30. MainWindow.setMinimumSize(QtCore.QSize(60, 60))
  31. MainWindow.setMaximumSize(QtCore.QSize(1000, 16777215))
  32. MainWindow.setWindowOpacity(1.0)
  33. MainWindow.setAutoFillBackground(True)
  34. self.centralwidget = QtGui.QWidget(MainWindow)
  35. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
  36. sizePolicy.setHorizontalStretch(0)
  37. sizePolicy.setVerticalStretch(0)
  38. sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
  39. self.centralwidget.setSizePolicy(sizePolicy)
  40. self.centralwidget.setMinimumSize(QtCore.QSize(0, 0))
  41. self.centralwidget.setMaximumSize(QtCore.QSize(1000, 16777215))
  42. self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
  43. self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
  44. self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
  45. self.scrollArea = QtGui.QScrollArea(self.centralwidget)
  46. self.scrollArea.setWidgetResizable(True)
  47. self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
  48. self.scrollAreaWidgetContents = QtGui.QWidget()
  49. self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 986, 927))
  50. self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents"))
  51. self.horizontalLayout_2 = QtGui.QHBoxLayout(self.scrollAreaWidgetContents)
  52. self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
  53. self.tabWidget = QtGui.QTabWidget(self.scrollAreaWidgetContents)
  54. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
  55. sizePolicy.setHorizontalStretch(0)
  56. sizePolicy.setVerticalStretch(0)
  57. sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
  58. self.tabWidget.setSizePolicy(sizePolicy)
  59. self.tabWidget.setMinimumSize(QtCore.QSize(940, 0))
  60. self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
  61. self.tab = QtGui.QWidget()
  62. self.tab.setObjectName(_fromUtf8("tab"))
  63. self.gridLayout = QtGui.QGridLayout(self.tab)
  64. self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
  65. self.groupBox_4 = QtGui.QGroupBox(self.tab)
  66. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
  67. sizePolicy.setHorizontalStretch(0)
  68. sizePolicy.setVerticalStretch(0)
  69. sizePolicy.setHeightForWidth(self.groupBox_4.sizePolicy().hasHeightForWidth())
  70. self.groupBox_4.setSizePolicy(sizePolicy)
  71. self.groupBox_4.setMinimumSize(QtCore.QSize(480, 150))
  72. self.groupBox_4.setFlat(False)
  73. self.groupBox_4.setCheckable(True)
  74. self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
  75. self.gridLayout.addWidget(self.groupBox_4, 4, 1, 1, 1)
  76. self.groupBox = QtGui.QGroupBox(self.tab)
  77. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
  78. sizePolicy.setHorizontalStretch(0)
  79. sizePolicy.setVerticalStretch(0)
  80. sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
  81. self.groupBox.setSizePolicy(sizePolicy)
  82. self.groupBox.setMinimumSize(QtCore.QSize(460, 230))
  83. self.groupBox.setAutoFillBackground(False)
  84. self.groupBox.setFlat(False)
  85. self.groupBox.setObjectName(_fromUtf8("groupBox"))
  86. self.headerFileTextBrowser = QtGui.QTextBrowser(self.groupBox)
  87. self.headerFileTextBrowser.setGeometry(QtCore.QRect(10, 30, 441, 31))
  88. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
  89. sizePolicy.setHorizontalStretch(0)
  90. sizePolicy.setVerticalStretch(0)
  91. sizePolicy.setHeightForWidth(self.headerFileTextBrowser.sizePolicy().hasHeightForWidth())
  92. self.headerFileTextBrowser.setSizePolicy(sizePolicy)
  93. font = QtGui.QFont()
  94. font.setPointSize(8)
  95. font.setItalic(True)
  96. self.headerFileTextBrowser.setFont(font)
  97. self.headerFileTextBrowser.setObjectName(_fromUtf8("headerFileTextBrowser"))
  98. self.label_4 = QtGui.QLabel(self.groupBox)
  99. self.label_4.setGeometry(QtCore.QRect(10, 70, 81, 21))
  100. self.label_4.setObjectName(_fromUtf8("label_4"))
  101. self.pulseTypeTextBrowser = QtGui.QTextBrowser(self.groupBox)
  102. self.pulseTypeTextBrowser.setGeometry(QtCore.QRect(90, 70, 361, 21))
  103. font = QtGui.QFont()
  104. font.setItalic(True)
  105. self.pulseTypeTextBrowser.setFont(font)
  106. self.pulseTypeTextBrowser.setAcceptDrops(True)
  107. self.pulseTypeTextBrowser.setObjectName(_fromUtf8("pulseTypeTextBrowser"))
  108. self.lcdNumberNuTx = QtGui.QLCDNumber(self.groupBox)
  109. self.lcdNumberNuTx.setGeometry(QtCore.QRect(160, 100, 64, 23))
  110. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
  111. sizePolicy.setHorizontalStretch(0)
  112. sizePolicy.setVerticalStretch(0)
  113. sizePolicy.setHeightForWidth(self.lcdNumberNuTx.sizePolicy().hasHeightForWidth())
  114. self.lcdNumberNuTx.setSizePolicy(sizePolicy)
  115. font = QtGui.QFont()
  116. font.setPointSize(8)
  117. self.lcdNumberNuTx.setFont(font)
  118. self.lcdNumberNuTx.setWhatsThis(_fromUtf8(""))
  119. self.lcdNumberNuTx.setAutoFillBackground(False)
  120. self.lcdNumberNuTx.setStyleSheet(_fromUtf8("#lcdNumberNuTx {\n"
  121. "color: green;\n"
  122. "background: black;\n"
  123. "}\n"
  124. "\n"
  125. "#lcdNumberNuTx:disabled {\n"
  126. "color: grey;\n"
  127. "background: black;\n"
  128. "}"))
  129. self.lcdNumberNuTx.setFrameShadow(QtGui.QFrame.Raised)
  130. self.lcdNumberNuTx.setLineWidth(1)
  131. self.lcdNumberNuTx.setMidLineWidth(0)
  132. self.lcdNumberNuTx.setSegmentStyle(QtGui.QLCDNumber.Flat)
  133. self.lcdNumberNuTx.setProperty("value", 0.0)
  134. self.lcdNumberNuTx.setObjectName(_fromUtf8("lcdNumberNuTx"))
  135. self.lcdNumberTuneuF = QtGui.QLCDNumber(self.groupBox)
  136. self.lcdNumberTuneuF.setGeometry(QtCore.QRect(370, 100, 64, 23))
  137. self.lcdNumberTuneuF.setStyleSheet(_fromUtf8("#lcdNumberTuneuF {\n"
  138. "color: green;\n"
  139. "background: black;\n"
  140. "}\n"
  141. "\n"
  142. "#lcdNumberTuneuF:disabled {\n"
  143. "color: grey;\n"
  144. "background: black;\n"
  145. "}"))
  146. self.lcdNumberTuneuF.setLineWidth(1)
  147. self.lcdNumberTuneuF.setMidLineWidth(0)
  148. self.lcdNumberTuneuF.setSegmentStyle(QtGui.QLCDNumber.Flat)
  149. self.lcdNumberTuneuF.setObjectName(_fromUtf8("lcdNumberTuneuF"))
  150. self.lcdNumberTauPulse1 = QtGui.QLCDNumber(self.groupBox)
  151. self.lcdNumberTauPulse1.setGeometry(QtCore.QRect(160, 130, 64, 23))
  152. self.lcdNumberTauPulse1.setStyleSheet(_fromUtf8("#lcdNumberTauPulse1 {\n"
  153. "color: green;\n"
  154. "background: black;\n"
  155. "}\n"
  156. "\n"
  157. "#lcdNumberTauPulse1:disabled {\n"
  158. "color: grey;\n"
  159. "background: black;\n"
  160. "}"))
  161. self.lcdNumberTauPulse1.setFrameShadow(QtGui.QFrame.Raised)
  162. self.lcdNumberTauPulse1.setLineWidth(1)
  163. self.lcdNumberTauPulse1.setMidLineWidth(0)
  164. self.lcdNumberTauPulse1.setSegmentStyle(QtGui.QLCDNumber.Flat)
  165. self.lcdNumberTauPulse1.setObjectName(_fromUtf8("lcdNumberTauPulse1"))
  166. self.label_6 = QtGui.QLabel(self.groupBox)
  167. self.label_6.setGeometry(QtCore.QRect(10, 100, 91, 21))
  168. self.label_6.setObjectName(_fromUtf8("label_6"))
  169. self.label_7 = QtGui.QLabel(self.groupBox)
  170. self.label_7.setGeometry(QtCore.QRect(10, 130, 141, 21))
  171. self.label_7.setObjectName(_fromUtf8("label_7"))
  172. self.label_13 = QtGui.QLabel(self.groupBox)
  173. self.label_13.setGeometry(QtCore.QRect(260, 160, 91, 21))
  174. self.label_13.setObjectName(_fromUtf8("label_13"))
  175. self.lcdNumberTauPulse2 = QtGui.QLCDNumber(self.groupBox)
  176. self.lcdNumberTauPulse2.setGeometry(QtCore.QRect(160, 160, 64, 23))
  177. self.lcdNumberTauPulse2.setStyleSheet(_fromUtf8("#lcdNumberTauPulse2 {\n"
  178. "color: green;\n"
  179. "background: black;\n"
  180. "}\n"
  181. "\n"
  182. "#lcdNumberTauPulse2:disabled{\n"
  183. "color: grey;\n"
  184. "background: black;\n"
  185. "}"))
  186. self.lcdNumberTauPulse2.setLineWidth(1)
  187. self.lcdNumberTauPulse2.setMidLineWidth(0)
  188. self.lcdNumberTauPulse2.setSegmentStyle(QtGui.QLCDNumber.Flat)
  189. self.lcdNumberTauPulse2.setObjectName(_fromUtf8("lcdNumberTauPulse2"))
  190. self.label_14 = QtGui.QLabel(self.groupBox)
  191. self.label_14.setGeometry(QtCore.QRect(260, 100, 111, 21))
  192. self.label_14.setObjectName(_fromUtf8("label_14"))
  193. self.label_15 = QtGui.QLabel(self.groupBox)
  194. self.label_15.setGeometry(QtCore.QRect(260, 130, 111, 21))
  195. self.label_15.setObjectName(_fromUtf8("label_15"))
  196. self.lcdNumberSampFreq = QtGui.QLCDNumber(self.groupBox)
  197. self.lcdNumberSampFreq.setEnabled(True)
  198. self.lcdNumberSampFreq.setGeometry(QtCore.QRect(370, 130, 64, 23))
  199. self.lcdNumberSampFreq.setStyleSheet(_fromUtf8("#lcdNumberSampFreq {\n"
  200. "color: green;\n"
  201. "background: black;\n"
  202. "}\n"
  203. "\n"
  204. "#lcdNumberSampFreq:disabled{\n"
  205. "color: grey;\n"
  206. "background: black;\n"
  207. "}"))
  208. self.lcdNumberSampFreq.setLineWidth(1)
  209. self.lcdNumberSampFreq.setMidLineWidth(0)
  210. self.lcdNumberSampFreq.setDigitCount(5)
  211. self.lcdNumberSampFreq.setSegmentStyle(QtGui.QLCDNumber.Flat)
  212. self.lcdNumberSampFreq.setObjectName(_fromUtf8("lcdNumberSampFreq"))
  213. self.lcdNumberTauDelay = QtGui.QLCDNumber(self.groupBox)
  214. self.lcdNumberTauDelay.setEnabled(True)
  215. self.lcdNumberTauDelay.setGeometry(QtCore.QRect(370, 160, 64, 23))
  216. self.lcdNumberTauDelay.setStyleSheet(_fromUtf8("#lcdNumberTauDelay {\n"
  217. "color: green;\n"
  218. "background: black;\n"
  219. "}\n"
  220. "\n"
  221. "#lcdNumberTauDelay:disabled {\n"
  222. "color: grey;\n"
  223. "background: black;\n"
  224. "}"))
  225. self.lcdNumberTauDelay.setLineWidth(1)
  226. self.lcdNumberTauDelay.setMidLineWidth(0)
  227. self.lcdNumberTauDelay.setSegmentStyle(QtGui.QLCDNumber.Flat)
  228. self.lcdNumberTauDelay.setObjectName(_fromUtf8("lcdNumberTauDelay"))
  229. self.label_16 = QtGui.QLabel(self.groupBox)
  230. self.label_16.setGeometry(QtCore.QRect(10, 160, 131, 21))
  231. self.label_16.setObjectName(_fromUtf8("label_16"))
  232. self.lcdNumberNQ = QtGui.QLCDNumber(self.groupBox)
  233. self.lcdNumberNQ.setGeometry(QtCore.QRect(160, 190, 64, 23))
  234. self.lcdNumberNQ.setStyleSheet(_fromUtf8("#lcdNumberNQ {\n"
  235. "color: green;\n"
  236. "background: black;\n"
  237. "}\n"
  238. "\n"
  239. "#lcdNumberNQ:disabled{\n"
  240. "color: grey;\n"
  241. "background: black;\n"
  242. "}"))
  243. self.lcdNumberNQ.setSegmentStyle(QtGui.QLCDNumber.Flat)
  244. self.lcdNumberNQ.setObjectName(_fromUtf8("lcdNumberNQ"))
  245. self.label_9 = QtGui.QLabel(self.groupBox)
  246. self.label_9.setGeometry(QtCore.QRect(10, 190, 141, 21))
  247. self.label_9.setObjectName(_fromUtf8("label_9"))
  248. self.gridLayout.addWidget(self.groupBox, 4, 0, 1, 1)
  249. self.groupBox_10 = QtGui.QGroupBox(self.tab)
  250. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
  251. sizePolicy.setHorizontalStretch(0)
  252. sizePolicy.setVerticalStretch(0)
  253. sizePolicy.setHeightForWidth(self.groupBox_10.sizePolicy().hasHeightForWidth())
  254. self.groupBox_10.setSizePolicy(sizePolicy)
  255. self.groupBox_10.setMinimumSize(QtCore.QSize(460, 160))
  256. self.groupBox_10.setObjectName(_fromUtf8("groupBox_10"))
  257. self.stacksLineEdit = QtGui.QLineEdit(self.groupBox_10)
  258. self.stacksLineEdit.setGeometry(QtCore.QRect(110, 30, 91, 21))
  259. self.stacksLineEdit.setToolTip(_fromUtf8("<html><head/><body><p>Set the stacks that you would like processed.</p><p>This must be a valid set of numpy array indices. Remember that Python uses non end-inclusive indexing. </p><p>So things like [1:24] will include stacks 1-23</p><p>Furthermore [1:8,12:24] will include stacks 1-7 and 12:23. Any list of valid indices will be accepted, but they must be comma seperated. </p></body></html>"))
  260. self.stacksLineEdit.setObjectName(_fromUtf8("stacksLineEdit"))
  261. self.label = QtGui.QLabel(self.groupBox_10)
  262. self.label.setGeometry(QtCore.QRect(10, 30, 51, 20))
  263. self.label.setToolTip(_fromUtf8(""))
  264. self.label.setStatusTip(_fromUtf8(""))
  265. self.label.setObjectName(_fromUtf8("label"))
  266. self.label_23 = QtGui.QLabel(self.groupBox_10)
  267. self.label_23.setGeometry(QtCore.QRect(10, 65, 101, 16))
  268. self.label_23.setObjectName(_fromUtf8("label_23"))
  269. self.dataChanLineEdit = QtGui.QLineEdit(self.groupBox_10)
  270. self.dataChanLineEdit.setGeometry(QtCore.QRect(110, 60, 91, 21))
  271. self.dataChanLineEdit.setObjectName(_fromUtf8("dataChanLineEdit"))
  272. self.label_24 = QtGui.QLabel(self.groupBox_10)
  273. self.label_24.setGeometry(QtCore.QRect(220, 36, 101, 16))
  274. self.label_24.setObjectName(_fromUtf8("label_24"))
  275. self.DeadTimeSpinBox = QtGui.QDoubleSpinBox(self.groupBox_10)
  276. self.DeadTimeSpinBox.setGeometry(QtCore.QRect(360, 30, 91, 25))
  277. self.DeadTimeSpinBox.setMinimum(5.0)
  278. self.DeadTimeSpinBox.setSingleStep(0.5)
  279. self.DeadTimeSpinBox.setProperty("value", 5.0)
  280. self.DeadTimeSpinBox.setObjectName(_fromUtf8("DeadTimeSpinBox"))
  281. self.label_28 = QtGui.QLabel(self.groupBox_10)
  282. self.label_28.setGeometry(QtCore.QRect(220, 64, 131, 16))
  283. self.label_28.setObjectName(_fromUtf8("label_28"))
  284. self.refChanLineEdit = QtGui.QLineEdit(self.groupBox_10)
  285. self.refChanLineEdit.setGeometry(QtCore.QRect(360, 60, 91, 21))
  286. self.refChanLineEdit.setObjectName(_fromUtf8("refChanLineEdit"))
  287. self.label_30 = QtGui.QLabel(self.groupBox_10)
  288. self.label_30.setGeometry(QtCore.QRect(12, 96, 91, 16))
  289. self.label_30.setObjectName(_fromUtf8("label_30"))
  290. self.CentralVSpinBox = QtGui.QDoubleSpinBox(self.groupBox_10)
  291. self.CentralVSpinBox.setGeometry(QtCore.QRect(110, 90, 91, 25))
  292. self.CentralVSpinBox.setMinimum(100.0)
  293. self.CentralVSpinBox.setMaximum(5000.99)
  294. self.CentralVSpinBox.setSingleStep(1.0)
  295. self.CentralVSpinBox.setObjectName(_fromUtf8("CentralVSpinBox"))
  296. self.label_29 = QtGui.QLabel(self.groupBox_10)
  297. self.label_29.setGeometry(QtCore.QRect(220, 95, 111, 16))
  298. self.label_29.setObjectName(_fromUtf8("label_29"))
  299. self.FIDProcComboBox = QtGui.QComboBox(self.groupBox_10)
  300. self.FIDProcComboBox.setGeometry(QtCore.QRect(360, 90, 91, 25))
  301. self.FIDProcComboBox.setObjectName(_fromUtf8("FIDProcComboBox"))
  302. self.fullWorkflowPushButton = QtGui.QPushButton(self.groupBox_10)
  303. self.fullWorkflowPushButton.setGeometry(QtCore.QRect(280, 130, 131, 31))
  304. self.fullWorkflowPushButton.setAutoFillBackground(False)
  305. self.fullWorkflowPushButton.setStyleSheet(_fromUtf8("#fullWorkflowPushButton {\n"
  306. "background: green;\n"
  307. "}"))
  308. self.fullWorkflowPushButton.setAutoDefault(False)
  309. self.fullWorkflowPushButton.setDefault(False)
  310. self.fullWorkflowPushButton.setFlat(False)
  311. self.fullWorkflowPushButton.setObjectName(_fromUtf8("fullWorkflowPushButton"))
  312. self.loadDataPushButton = QtGui.QPushButton(self.groupBox_10)
  313. self.loadDataPushButton.setGeometry(QtCore.QRect(90, 130, 91, 31))
  314. self.loadDataPushButton.setObjectName(_fromUtf8("loadDataPushButton"))
  315. self.gridLayout.addWidget(self.groupBox_10, 5, 0, 1, 1)
  316. self.groupBox_9 = QtGui.QGroupBox(self.tab)
  317. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
  318. sizePolicy.setHorizontalStretch(0)
  319. sizePolicy.setVerticalStretch(0)
  320. sizePolicy.setHeightForWidth(self.groupBox_9.sizePolicy().hasHeightForWidth())
  321. self.groupBox_9.setSizePolicy(sizePolicy)
  322. self.groupBox_9.setMinimumSize(QtCore.QSize(480, 100))
  323. self.groupBox_9.setCheckable(True)
  324. self.groupBox_9.setObjectName(_fromUtf8("groupBox_9"))
  325. self.checkBox = QtGui.QCheckBox(self.groupBox_9)
  326. self.checkBox.setGeometry(QtCore.QRect(30, 30, 171, 20))
  327. self.checkBox.setObjectName(_fromUtf8("checkBox"))
  328. self.comboBox_2 = QtGui.QComboBox(self.groupBox_9)
  329. self.comboBox_2.setGeometry(QtCore.QRect(130, 50, 78, 25))
  330. self.comboBox_2.setObjectName(_fromUtf8("comboBox_2"))
  331. self.label_5 = QtGui.QLabel(self.groupBox_9)
  332. self.label_5.setGeometry(QtCore.QRect(40, 60, 71, 16))
  333. self.label_5.setObjectName(_fromUtf8("label_5"))
  334. self.doubleSpinBox = QtGui.QDoubleSpinBox(self.groupBox_9)
  335. self.doubleSpinBox.setGeometry(QtCore.QRect(390, 20, 62, 25))
  336. self.doubleSpinBox.setObjectName(_fromUtf8("doubleSpinBox"))
  337. self.label_8 = QtGui.QLabel(self.groupBox_9)
  338. self.label_8.setGeometry(QtCore.QRect(220, 20, 161, 20))
  339. self.label_8.setObjectName(_fromUtf8("label_8"))
  340. self.gridLayout.addWidget(self.groupBox_9, 5, 1, 1, 1)
  341. self.groupBox_7 = QtGui.QGroupBox(self.tab)
  342. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
  343. sizePolicy.setHorizontalStretch(0)
  344. sizePolicy.setVerticalStretch(0)
  345. sizePolicy.setHeightForWidth(self.groupBox_7.sizePolicy().hasHeightForWidth())
  346. self.groupBox_7.setSizePolicy(sizePolicy)
  347. self.groupBox_7.setMinimumSize(QtCore.QSize(480, 100))
  348. self.groupBox_7.setCheckable(True)
  349. self.groupBox_7.setObjectName(_fromUtf8("groupBox_7"))
  350. self.comboBox = QtGui.QComboBox(self.groupBox_7)
  351. self.comboBox.setGeometry(QtCore.QRect(40, 30, 141, 22))
  352. self.comboBox.setMouseTracking(True)
  353. self.comboBox.setToolTip(_fromUtf8(""))
  354. self.comboBox.setStatusTip(_fromUtf8(""))
  355. self.comboBox.setWhatsThis(_fromUtf8(""))
  356. self.comboBox.setObjectName(_fromUtf8("comboBox"))
  357. self.comboBox.addItem(_fromUtf8(""))
  358. self.comboBox.addItem(_fromUtf8(""))
  359. self.gridLayout.addWidget(self.groupBox_7, 2, 1, 1, 1)
  360. self.label_2 = QtGui.QLabel(self.tab)
  361. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
  362. sizePolicy.setHorizontalStretch(0)
  363. sizePolicy.setVerticalStretch(0)
  364. sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
  365. self.label_2.setSizePolicy(sizePolicy)
  366. font = QtGui.QFont()
  367. font.setPointSize(20)
  368. font.setBold(True)
  369. font.setWeight(75)
  370. self.label_2.setFont(font)
  371. self.label_2.setLayoutDirection(QtCore.Qt.LeftToRight)
  372. self.label_2.setObjectName(_fromUtf8("label_2"))
  373. self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1)
  374. self.groupBox_8 = QtGui.QGroupBox(self.tab)
  375. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
  376. sizePolicy.setHorizontalStretch(0)
  377. sizePolicy.setVerticalStretch(0)
  378. sizePolicy.setHeightForWidth(self.groupBox_8.sizePolicy().hasHeightForWidth())
  379. self.groupBox_8.setSizePolicy(sizePolicy)
  380. self.groupBox_8.setMinimumSize(QtCore.QSize(480, 150))
  381. self.groupBox_8.setCheckable(True)
  382. self.groupBox_8.setObjectName(_fromUtf8("groupBox_8"))
  383. self.label_3 = QtGui.QLabel(self.groupBox_8)
  384. self.label_3.setGeometry(QtCore.QRect(30, 60, 111, 16))
  385. self.label_3.setObjectName(_fromUtf8("label_3"))
  386. self.spinBox = QtGui.QSpinBox(self.groupBox_8)
  387. self.spinBox.setGeometry(QtCore.QRect(140, 60, 101, 25))
  388. self.spinBox.setMaximum(1000)
  389. self.spinBox.setProperty("value", 300)
  390. self.spinBox.setObjectName(_fromUtf8("spinBox"))
  391. self.gridLayout.addWidget(self.groupBox_8, 3, 1, 1, 1)
  392. self.groupBox_5 = QtGui.QGroupBox(self.tab)
  393. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
  394. sizePolicy.setHorizontalStretch(0)
  395. sizePolicy.setVerticalStretch(0)
  396. sizePolicy.setHeightForWidth(self.groupBox_5.sizePolicy().hasHeightForWidth())
  397. self.groupBox_5.setSizePolicy(sizePolicy)
  398. self.groupBox_5.setMinimumSize(QtCore.QSize(480, 150))
  399. self.groupBox_5.setCheckable(True)
  400. self.groupBox_5.setObjectName(_fromUtf8("groupBox_5"))
  401. self.gridLayout.addWidget(self.groupBox_5, 1, 1, 1, 1)
  402. self.mplwidget = MyDynamicMplCanvas(self.tab)
  403. sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
  404. sizePolicy.setHorizontalStretch(0)
  405. sizePolicy.setVerticalStretch(0)
  406. sizePolicy.setHeightForWidth(self.mplwidget.sizePolicy().hasHeightForWidth())
  407. self.mplwidget.setSizePolicy(sizePolicy)
  408. self.mplwidget.setMinimumSize(QtCore.QSize(460, 460))
  409. self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
  410. self.gridLayout.addWidget(self.mplwidget, 0, 0, 4, 1)
  411. self.tabWidget.addTab(self.tab, _fromUtf8(""))
  412. self.tab_3 = QtGui.QWidget()
  413. self.tab_3.setObjectName(_fromUtf8("tab_3"))
  414. self.treeWidget = QtGui.QTreeWidget(self.tab_3)
  415. self.treeWidget.setGeometry(QtCore.QRect(70, 50, 256, 192))
  416. self.treeWidget.setObjectName(_fromUtf8("treeWidget"))
  417. self.treeWidget.headerItem().setText(0, _fromUtf8("1"))
  418. self.toolBox = QtGui.QToolBox(self.tab_3)
  419. self.toolBox.setGeometry(QtCore.QRect(320, 460, 79, 137))
  420. self.toolBox.setObjectName(_fromUtf8("toolBox"))
  421. self.page = QtGui.QWidget()
  422. self.page.setGeometry(QtCore.QRect(0, 0, 94, 24))
  423. self.page.setObjectName(_fromUtf8("page"))
  424. self.toolBox.addItem(self.page, _fromUtf8(""))
  425. self.page_2 = QtGui.QWidget()
  426. self.page_2.setGeometry(QtCore.QRect(0, 0, 94, 24))
  427. self.page_2.setObjectName(_fromUtf8("page_2"))
  428. self.toolBox.addItem(self.page_2, _fromUtf8(""))
  429. self.dateEdit = QtGui.QDateEdit(self.tab_3)
  430. self.dateEdit.setGeometry(QtCore.QRect(400, 280, 110, 25))
  431. self.dateEdit.setObjectName(_fromUtf8("dateEdit"))
  432. self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
  433. self.tab_2 = QtGui.QWidget()
  434. self.tab_2.setObjectName(_fromUtf8("tab_2"))
  435. self.dateEdit_2 = QtGui.QDateEdit(self.tab_2)
  436. self.dateEdit_2.setGeometry(QtCore.QRect(50, 100, 110, 25))
  437. self.dateEdit_2.setObjectName(_fromUtf8("dateEdit_2"))
  438. self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
  439. self.tab_6 = QtGui.QWidget()
  440. self.tab_6.setObjectName(_fromUtf8("tab_6"))
  441. self.tabWidget.addTab(self.tab_6, _fromUtf8(""))
  442. self.tab_4 = QtGui.QWidget()
  443. self.tab_4.setObjectName(_fromUtf8("tab_4"))
  444. self.invertButton = QtGui.QPushButton(self.tab_4)
  445. self.invertButton.setGeometry(QtCore.QRect(290, 140, 311, 141))
  446. self.invertButton.setStyleSheet(_fromUtf8("#invertButton {\n"
  447. "font-size:29pt;\n"
  448. "font-weight: bold;\n"
  449. "color: white;\n"
  450. "background: red;\n"
  451. "}"))
  452. self.invertButton.setObjectName(_fromUtf8("invertButton"))
  453. self.tabWidget.addTab(self.tab_4, _fromUtf8(""))
  454. self.tab_5 = QtGui.QWidget()
  455. self.tab_5.setObjectName(_fromUtf8("tab_5"))
  456. self.tabWidget.addTab(self.tab_5, _fromUtf8(""))
  457. self.horizontalLayout_2.addWidget(self.tabWidget)
  458. self.scrollArea.setWidget(self.scrollAreaWidgetContents)
  459. self.horizontalLayout.addWidget(self.scrollArea)
  460. MainWindow.setCentralWidget(self.centralwidget)
  461. self.menubar = QtGui.QMenuBar(MainWindow)
  462. self.menubar.setGeometry(QtCore.QRect(0, 0, 1000, 20))
  463. self.menubar.setObjectName(_fromUtf8("menubar"))
  464. self.menuFile = QtGui.QMenu(self.menubar)
  465. self.menuFile.setObjectName(_fromUtf8("menuFile"))
  466. self.menuAbout = QtGui.QMenu(self.menubar)
  467. self.menuAbout.setObjectName(_fromUtf8("menuAbout"))
  468. MainWindow.setMenuBar(self.menubar)
  469. self.statusbar = QtGui.QStatusBar(MainWindow)
  470. self.statusbar.setObjectName(_fromUtf8("statusbar"))
  471. MainWindow.setStatusBar(self.statusbar)
  472. self.actionClose = QtGui.QAction(MainWindow)
  473. self.actionClose.setObjectName(_fromUtf8("actionClose"))
  474. self.actionAboutBrewCentral = QtGui.QAction(MainWindow)
  475. self.actionAboutBrewCentral.setObjectName(_fromUtf8("actionAboutBrewCentral"))
  476. self.actionNothing = QtGui.QAction(MainWindow)
  477. self.actionNothing.setObjectName(_fromUtf8("actionNothing"))
  478. self.actionTemperature = QtGui.QAction(MainWindow)
  479. self.actionTemperature.setObjectName(_fromUtf8("actionTemperature"))
  480. self.actionOpen_GMR = QtGui.QAction(MainWindow)
  481. self.actionOpen_GMR.setCheckable(False)
  482. self.actionOpen_GMR.setObjectName(_fromUtf8("actionOpen_GMR"))
  483. self.actionProcess = QtGui.QAction(MainWindow)
  484. self.actionProcess.setCheckable(True)
  485. self.actionProcess.setObjectName(_fromUtf8("actionProcess"))
  486. self.actionOpen_Preprocessed_dataset = QtGui.QAction(MainWindow)
  487. self.actionOpen_Preprocessed_dataset.setEnabled(False)
  488. self.actionOpen_Preprocessed_dataset.setObjectName(_fromUtf8("actionOpen_Preprocessed_dataset"))
  489. self.actionOpen_VC_Preprocessed_dataset = QtGui.QAction(MainWindow)
  490. self.actionOpen_VC_Preprocessed_dataset.setEnabled(False)
  491. self.actionOpen_VC_Preprocessed_dataset.setObjectName(_fromUtf8("actionOpen_VC_Preprocessed_dataset"))
  492. self.actionSave_Preprocesssed_Dataset = QtGui.QAction(MainWindow)
  493. self.actionSave_Preprocesssed_Dataset.setEnabled(False)
  494. self.actionSave_Preprocesssed_Dataset.setObjectName(_fromUtf8("actionSave_Preprocesssed_Dataset"))
  495. self.menuFile.addAction(self.actionOpen_GMR)
  496. self.menuFile.addSeparator()
  497. self.menuFile.addAction(self.actionOpen_Preprocessed_dataset)
  498. self.menuFile.addAction(self.actionOpen_VC_Preprocessed_dataset)
  499. self.menuFile.addSeparator()
  500. self.menuFile.addAction(self.actionSave_Preprocesssed_Dataset)
  501. self.menuFile.addSeparator()
  502. self.menuFile.addAction(self.actionClose)
  503. self.menuAbout.addAction(self.actionAboutBrewCentral)
  504. self.menubar.addAction(self.menuFile.menuAction())
  505. self.menubar.addAction(self.menuAbout.menuAction())
  506. self.retranslateUi(MainWindow)
  507. self.tabWidget.setCurrentIndex(0)
  508. self.toolBox.setCurrentIndex(0)
  509. QtCore.QObject.connect(self.actionClose, QtCore.SIGNAL(_fromUtf8("activated()")), MainWindow.close)
  510. QtCore.QObject.connect(self.actionAboutBrewCentral, QtCore.SIGNAL(_fromUtf8("activated()")), MainWindow.show)
  511. QtCore.QMetaObject.connectSlotsByName(MainWindow)
  512. def retranslateUi(self, MainWindow):
  513. MainWindow.setWindowTitle(_translate("MainWindow", "Avko - sNMR Workbench", None))
  514. self.groupBox_4.setTitle(_translate("MainWindow", "Adaptive Noise Suppresion", None))
  515. self.groupBox.setTitle(_translate("MainWindow", "Header file info", None))
  516. self.headerFileTextBrowser.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
  517. "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
  518. "p, li { white-space: pre-wrap; }\n"
  519. "</style></head><body style=\" font-family:\'Sans Serif\'; font-size:8pt; font-weight:400; font-style:italic;\">\n"
  520. "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'DejaVu Serif\'; font-size:9pt;\">Load supported RAW Dataset header from file menu</span></p></body></html>", None))
  521. self.label_4.setText(_translate("MainWindow", "Pulse Type", None))
  522. self.pulseTypeTextBrowser.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
  523. "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
  524. "p, li { white-space: pre-wrap; }\n"
  525. "</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:italic;\">\n"
  526. "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'DejaVu Serif\'; font-size:10pt;\"><br /></p></body></html>", None))
  527. self.label_6.setText(_translate("MainWindow", "ν Tx [Hz]", None))
  528. self.label_7.setText(_translate("MainWindow", "τ Pulse 1 [ms]", None))
  529. self.label_13.setText(_translate("MainWindow", "τ Delay [ms]", None))
  530. self.label_14.setText(_translate("MainWindow", "Tx tuning [μF]", None))
  531. self.label_15.setText(_translate("MainWindow", "ν Sampling [Hz]", None))
  532. self.label_16.setText(_translate("MainWindow", "τ Pulse 2 [ms]", None))
  533. self.label_9.setText(_translate("MainWindow", "Num. pulse moments", None))
  534. self.groupBox_10.setTitle(_translate("MainWindow", "Input parameters", None))
  535. self.label.setText(_translate("MainWindow", "Stacks", None))
  536. self.label_23.setText(_translate("MainWindow", "Data Channels", None))
  537. self.label_24.setText(_translate("MainWindow", "Dead time [ms]", None))
  538. self.label_28.setText(_translate("MainWindow", "Reference Channels", None))
  539. self.label_30.setText(_translate("MainWindow", "Central ν Hz", None))
  540. self.CentralVSpinBox.setToolTip(_translate("MainWindow", "<html><head/><body><p>In case of off-resonant transmitter pulse, you can set the central frequency that will be used for all processing. This has the biggest impact on the band-pass filter, and the frequencies used in inversion. </p></body></html>", None))
  541. self.label_29.setText(_translate("MainWindow", "Process FID #", None))
  542. self.FIDProcComboBox.setToolTip(_translate("MainWindow", "<html><head/><body><p>For T1 or CPMG pulses, which pulse(s) would you like to process. Note that for very short delay T1 pulses, the first pulse may be disabled. </p></body></html>", None))
  543. self.fullWorkflowPushButton.setText(_translate("MainWindow", "Full Workflow", None))
  544. self.loadDataPushButton.setText(_translate("MainWindow", "Load Data", None))
  545. self.groupBox_9.setTitle(_translate("MainWindow", "SmartStack^TM", None))
  546. self.checkBox.setText(_translate("MainWindow", "Correct phase jitter", None))
  547. self.label_5.setText(_translate("MainWindow", "Outlier test", None))
  548. self.label_8.setText(_translate("MainWindow", "Instrument phase delay", None))
  549. self.groupBox_7.setTitle(_translate("MainWindow", "Band-Pass Filter", None))
  550. self.comboBox.setAccessibleDescription(_translate("MainWindow", "Hello", None))
  551. self.comboBox.setItemText(0, _translate("MainWindow", "Butterworth", None))
  552. self.comboBox.setItemText(1, _translate("MainWindow", "Chebychev Type II", None))
  553. self.label_2.setText(_translate("MainWindow", " Preprocessing Workflow", None))
  554. self.groupBox_8.setTitle(_translate("MainWindow", "Downsample and truncate", None))
  555. self.label_3.setText(_translate("MainWindow", "Truncate [ms]", None))
  556. self.groupBox_5.setTitle(_translate("MainWindow", "Despike Filter", None))
  557. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Preprocess RAW", None))
  558. self.toolBox.setItemText(self.toolBox.indexOf(self.page), _translate("MainWindow", "Page 1", None))
  559. self.toolBox.setItemText(self.toolBox.indexOf(self.page_2), _translate("MainWindow", "Page 2", None))
  560. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "Data QC", None))
  561. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Model Parameters", None))
  562. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_6), _translate("MainWindow", "Forward modelling", None))
  563. self.invertButton.setText(_translate("MainWindow", "Invert", None))
  564. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("MainWindow", "Inversion", None))
  565. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("MainWindow", "Analysis", None))
  566. self.menuFile.setTitle(_translate("MainWindow", "&File", None))
  567. self.menuAbout.setTitle(_translate("MainWindow", "About", None))
  568. self.actionClose.setText(_translate("MainWindow", "&Close", None))
  569. self.actionAboutBrewCentral.setText(_translate("MainWindow", "Brew Central", None))
  570. self.actionNothing.setText(_translate("MainWindow", "Nothing", None))
  571. self.actionTemperature.setText(_translate("MainWindow", "Temperature", None))
  572. self.actionOpen_GMR.setText(_translate("MainWindow", "Open GMR RAW header", None))
  573. self.actionOpen_GMR.setIconText(_translate("MainWindow", "Open GMR RAW dataset(s)", None))
  574. self.actionProcess.setText(_translate("MainWindow", "Process", None))
  575. self.actionOpen_Preprocessed_dataset.setText(_translate("MainWindow", "Open Avko Preprocessed dataset", None))
  576. self.actionOpen_VC_Preprocessed_dataset.setText(_translate("MainWindow", "Open VC Preprocessed dataset", None))
  577. self.actionSave_Preprocesssed_Dataset.setText(_translate("MainWindow", "Save Preprocesssed Dataset", None))
  578. from mydynamicmplcanvas import MyDynamicMplCanvas