mirror of
https://github.com/Athemis/PyDSF.git
synced 2025-04-20 11:59:12 +00:00
Overhaul of data saving
This commit is contained in:
parent
6a2c7f2762
commit
71c25f902b
6 changed files with 327 additions and 215 deletions
|
@ -11,7 +11,12 @@ from PyQt5 import QtCore, QtGui, QtWidgets
|
|||
class Ui_MainWindow(object):
|
||||
def setupUi(self, MainWindow):
|
||||
MainWindow.setObjectName("MainWindow")
|
||||
MainWindow.resize(1066, 795)
|
||||
MainWindow.resize(4095, 4095)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
|
||||
MainWindow.setSizePolicy(sizePolicy)
|
||||
MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
||||
self.centralWidget = QtWidgets.QWidget(MainWindow)
|
||||
self.centralWidget.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
||||
|
@ -128,33 +133,6 @@ class Ui_MainWindow(object):
|
|||
self.doubleSpinBox_dt.setObjectName("doubleSpinBox_dt")
|
||||
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.doubleSpinBox_dt)
|
||||
self.gridLayout.addWidget(self.groupBox_temp, 0, 0, 1, 1)
|
||||
self.groupBox_cutoff = QtWidgets.QGroupBox(self.groupBox_processing)
|
||||
self.groupBox_cutoff.setEnabled(True)
|
||||
self.groupBox_cutoff.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.groupBox_cutoff.setCheckable(True)
|
||||
self.groupBox_cutoff.setChecked(False)
|
||||
self.groupBox_cutoff.setObjectName("groupBox_cutoff")
|
||||
self.formLayout_2 = QtWidgets.QFormLayout(self.groupBox_cutoff)
|
||||
self.formLayout_2.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow)
|
||||
self.formLayout_2.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.formLayout_2.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
|
||||
self.formLayout_2.setObjectName("formLayout_2")
|
||||
self.label_cutoff_high = QtWidgets.QLabel(self.groupBox_cutoff)
|
||||
self.label_cutoff_high.setObjectName("label_cutoff_high")
|
||||
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_cutoff_high)
|
||||
self.doubleSpinBox_upper = QtWidgets.QDoubleSpinBox(self.groupBox_cutoff)
|
||||
self.doubleSpinBox_upper.setPrefix("")
|
||||
self.doubleSpinBox_upper.setDecimals(1)
|
||||
self.doubleSpinBox_upper.setObjectName("doubleSpinBox_upper")
|
||||
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.doubleSpinBox_upper)
|
||||
self.label_cutoff_low = QtWidgets.QLabel(self.groupBox_cutoff)
|
||||
self.label_cutoff_low.setObjectName("label_cutoff_low")
|
||||
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_cutoff_low)
|
||||
self.doubleSpinBox_lower = QtWidgets.QDoubleSpinBox(self.groupBox_cutoff)
|
||||
self.doubleSpinBox_lower.setDecimals(1)
|
||||
self.doubleSpinBox_lower.setObjectName("doubleSpinBox_lower")
|
||||
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.doubleSpinBox_lower)
|
||||
self.gridLayout.addWidget(self.groupBox_cutoff, 0, 1, 1, 1)
|
||||
self.groupBox_signal_threshold = QtWidgets.QGroupBox(self.groupBox_processing)
|
||||
self.groupBox_signal_threshold.setEnabled(True)
|
||||
self.groupBox_signal_threshold.setCheckable(True)
|
||||
|
@ -190,8 +168,67 @@ class Ui_MainWindow(object):
|
|||
self.doubleSpinBox_cbar_end.setObjectName("doubleSpinBox_cbar_end")
|
||||
self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.doubleSpinBox_cbar_end)
|
||||
self.gridLayout.addWidget(self.groupBox_cbar, 1, 1, 1, 1)
|
||||
self.groupBox_cutoff = QtWidgets.QGroupBox(self.groupBox_processing)
|
||||
self.groupBox_cutoff.setEnabled(True)
|
||||
self.groupBox_cutoff.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.groupBox_cutoff.setCheckable(True)
|
||||
self.groupBox_cutoff.setChecked(False)
|
||||
self.groupBox_cutoff.setObjectName("groupBox_cutoff")
|
||||
self.formLayout_2 = QtWidgets.QFormLayout(self.groupBox_cutoff)
|
||||
self.formLayout_2.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow)
|
||||
self.formLayout_2.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.formLayout_2.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
|
||||
self.formLayout_2.setObjectName("formLayout_2")
|
||||
self.label_cutoff_high = QtWidgets.QLabel(self.groupBox_cutoff)
|
||||
self.label_cutoff_high.setObjectName("label_cutoff_high")
|
||||
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_cutoff_high)
|
||||
self.doubleSpinBox_upper = QtWidgets.QDoubleSpinBox(self.groupBox_cutoff)
|
||||
self.doubleSpinBox_upper.setPrefix("")
|
||||
self.doubleSpinBox_upper.setDecimals(1)
|
||||
self.doubleSpinBox_upper.setObjectName("doubleSpinBox_upper")
|
||||
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.doubleSpinBox_upper)
|
||||
self.label_cutoff_low = QtWidgets.QLabel(self.groupBox_cutoff)
|
||||
self.label_cutoff_low.setObjectName("label_cutoff_low")
|
||||
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_cutoff_low)
|
||||
self.doubleSpinBox_lower = QtWidgets.QDoubleSpinBox(self.groupBox_cutoff)
|
||||
self.doubleSpinBox_lower.setDecimals(1)
|
||||
self.doubleSpinBox_lower.setObjectName("doubleSpinBox_lower")
|
||||
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.doubleSpinBox_lower)
|
||||
self.gridLayout.addWidget(self.groupBox_cutoff, 0, 1, 1, 1)
|
||||
self.groupBox_output = QtWidgets.QGroupBox(self.groupBox_processing)
|
||||
self.groupBox_output.setCheckable(True)
|
||||
self.groupBox_output.setChecked(False)
|
||||
self.groupBox_output.setObjectName("groupBox_output")
|
||||
self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_output)
|
||||
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||
self.checkBox_saveplots = QtWidgets.QCheckBox(self.groupBox_output)
|
||||
self.checkBox_saveplots.setObjectName("checkBox_saveplots")
|
||||
self.gridLayout_2.addWidget(self.checkBox_saveplots, 0, 0, 1, 1)
|
||||
self.buttonBox_output = QtWidgets.QDialogButtonBox(self.groupBox_output)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.buttonBox_output.sizePolicy().hasHeightForWidth())
|
||||
self.buttonBox_output.setSizePolicy(sizePolicy)
|
||||
self.buttonBox_output.setOrientation(QtCore.Qt.Vertical)
|
||||
self.buttonBox_output.setStandardButtons(QtWidgets.QDialogButtonBox.Open)
|
||||
self.buttonBox_output.setObjectName("buttonBox_output")
|
||||
self.gridLayout_2.addWidget(self.buttonBox_output, 2, 1, 1, 1)
|
||||
self.lineEdit_output = QtWidgets.QLineEdit(self.groupBox_output)
|
||||
self.lineEdit_output.setObjectName("lineEdit_output")
|
||||
self.gridLayout_2.addWidget(self.lineEdit_output, 2, 0, 1, 1)
|
||||
self.checkBox_savetables = QtWidgets.QCheckBox(self.groupBox_output)
|
||||
self.checkBox_savetables.setObjectName("checkBox_savetables")
|
||||
self.gridLayout_2.addWidget(self.checkBox_savetables, 1, 0, 1, 1)
|
||||
self.gridLayout.addWidget(self.groupBox_output, 2, 0, 1, 2)
|
||||
self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.SpanningRole, self.groupBox_processing)
|
||||
self.buttonBox_process = QtWidgets.QDialogButtonBox(self.groupBox_experiment)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.buttonBox_process.sizePolicy().hasHeightForWidth())
|
||||
self.buttonBox_process.setSizePolicy(sizePolicy)
|
||||
self.buttonBox_process.setMinimumSize(QtCore.QSize(0, 0))
|
||||
self.buttonBox_process.setStandardButtons(QtWidgets.QDialogButtonBox.NoButton)
|
||||
self.buttonBox_process.setObjectName("buttonBox_process")
|
||||
self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.buttonBox_process)
|
||||
|
@ -220,7 +257,7 @@ class Ui_MainWindow(object):
|
|||
self.horizontalLayout.addWidget(self.splitter)
|
||||
MainWindow.setCentralWidget(self.centralWidget)
|
||||
self.menuBar = QtWidgets.QMenuBar(MainWindow)
|
||||
self.menuBar.setGeometry(QtCore.QRect(0, 0, 1066, 28))
|
||||
self.menuBar.setGeometry(QtCore.QRect(0, 0, 4095, 28))
|
||||
self.menuBar.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
||||
self.menuBar.setObjectName("menuBar")
|
||||
self.menuFile = QtWidgets.QMenu(self.menuBar)
|
||||
|
@ -251,10 +288,10 @@ class Ui_MainWindow(object):
|
|||
self.label_tmin.setBuddy(self.doubleSpinBox_tmin)
|
||||
self.label_tmax.setBuddy(self.doubleSpinBox_tmax)
|
||||
self.label_dt.setBuddy(self.doubleSpinBox_dt)
|
||||
self.label_cutoff_high.setBuddy(self.doubleSpinBox_upper)
|
||||
self.label_cutoff_low.setBuddy(self.doubleSpinBox_lower)
|
||||
self.label_cbar_start.setBuddy(self.doubleSpinBox_cbar_start)
|
||||
self.label_cbar_end.setBuddy(self.doubleSpinBox_cbar_end)
|
||||
self.label_cutoff_high.setBuddy(self.doubleSpinBox_upper)
|
||||
self.label_cutoff_low.setBuddy(self.doubleSpinBox_lower)
|
||||
|
||||
self.retranslateUi(MainWindow)
|
||||
self.tabWidget.setCurrentIndex(-1)
|
||||
|
@ -279,12 +316,6 @@ class Ui_MainWindow(object):
|
|||
self.doubleSpinBox_tmax.setSuffix(_translate("MainWindow", " °C"))
|
||||
self.label_dt.setText(_translate("MainWindow", "<html><head/><body><p>ΔT</p></body></html>"))
|
||||
self.doubleSpinBox_dt.setSuffix(_translate("MainWindow", " °C"))
|
||||
self.groupBox_cutoff.setToolTip(_translate("MainWindow", "<html><head/><body><p>Only T<span style=\" vertical-align:sub;\">m</span> values within this limit are considered valid.</p></body></html>"))
|
||||
self.groupBox_cutoff.setTitle(_translate("MainWindow", "&Cutoff"))
|
||||
self.label_cutoff_high.setText(_translate("MainWindow", "&Upper"))
|
||||
self.doubleSpinBox_upper.setSuffix(_translate("MainWindow", " °C"))
|
||||
self.label_cutoff_low.setText(_translate("MainWindow", "Lower"))
|
||||
self.doubleSpinBox_lower.setSuffix(_translate("MainWindow", " °C"))
|
||||
self.groupBox_signal_threshold.setToolTip(_translate("MainWindow", "<html><head/><body><p>If the signal exceeds this threshold, the coresponding well is assumed to be denatured.</p></body></html>"))
|
||||
self.groupBox_signal_threshold.setTitle(_translate("MainWindow", "Signal &Threshold"))
|
||||
self.groupBox_cbar.setToolTip(_translate("MainWindow", "<html><head/><body><p>Defines the range of the colorbar used for the T<span style=\" vertical-align:sub;\">m</span> heatmap.</p></body></html>"))
|
||||
|
@ -293,6 +324,16 @@ class Ui_MainWindow(object):
|
|||
self.doubleSpinBox_cbar_start.setSuffix(_translate("MainWindow", " °C"))
|
||||
self.label_cbar_end.setText(_translate("MainWindow", "En&d"))
|
||||
self.doubleSpinBox_cbar_end.setSuffix(_translate("MainWindow", " °C"))
|
||||
self.groupBox_cutoff.setToolTip(_translate("MainWindow", "<html><head/><body><p>Only T<span style=\" vertical-align:sub;\">m</span> values within this limit are considered valid.</p></body></html>"))
|
||||
self.groupBox_cutoff.setTitle(_translate("MainWindow", "&Cutoff"))
|
||||
self.label_cutoff_high.setText(_translate("MainWindow", "&Upper"))
|
||||
self.doubleSpinBox_upper.setSuffix(_translate("MainWindow", " °C"))
|
||||
self.label_cutoff_low.setText(_translate("MainWindow", "Lower"))
|
||||
self.doubleSpinBox_lower.setSuffix(_translate("MainWindow", " °C"))
|
||||
self.groupBox_output.setTitle(_translate("MainWindow", "Sa&ve processing results"))
|
||||
self.checkBox_saveplots.setText(_translate("MainWindow", "Save plots"))
|
||||
self.lineEdit_output.setToolTip(_translate("MainWindow", "Output results to this path"))
|
||||
self.checkBox_savetables.setText(_translate("MainWindow", "Save tabular results"))
|
||||
self.groupBox_results.setTitle(_translate("MainWindow", "Plots"))
|
||||
self.menuFile.setTitle(_translate("MainWindow", "Fi&le"))
|
||||
self.menuHelp.setTitle(_translate("MainWindow", "Hel&p"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue