优化<数据精同步>的代码

This commit is contained in:
Yorusora
2025-05-20 20:25:45 +08:00
parent d2e0a61056
commit 900912090a
8 changed files with 386 additions and 159 deletions

View File

@ -82,12 +82,31 @@ class Ui_MainWindow_precisely_align_input_setting(object):
self.groupBox_file_path_input_orgBcg.setObjectName(u"groupBox_file_path_input_orgBcg")
self.verticalLayout_8 = QVBoxLayout(self.groupBox_file_path_input_orgBcg)
self.verticalLayout_8.setObjectName(u"verticalLayout_8")
self.horizontalLayout_5 = QHBoxLayout()
self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
self.label_5 = QLabel(self.groupBox_file_path_input_orgBcg)
self.label_5.setObjectName(u"label_5")
self.label_5.setFont(font)
self.horizontalLayout_5.addWidget(self.label_5)
self.spinBox_input_freq_orgBcg = QSpinBox(self.groupBox_file_path_input_orgBcg)
self.spinBox_input_freq_orgBcg.setObjectName(u"spinBox_input_freq_orgBcg")
self.spinBox_input_freq_orgBcg.setFont(font)
self.spinBox_input_freq_orgBcg.setMinimum(1)
self.spinBox_input_freq_orgBcg.setMaximum(1000000)
self.horizontalLayout_5.addWidget(self.spinBox_input_freq_orgBcg)
self.verticalLayout_8.addLayout(self.horizontalLayout_5)
self.plainTextEdit_file_path_input_orgBcg = QPlainTextEdit(self.groupBox_file_path_input_orgBcg)
self.plainTextEdit_file_path_input_orgBcg.setObjectName(u"plainTextEdit_file_path_input_orgBcg")
self.verticalLayout_8.addWidget(self.plainTextEdit_file_path_input_orgBcg)
self.verticalLayout_8.setStretch(0, 3)
self.verticalLayout_8.setStretch(1, 3)
self.gridLayout_2.addWidget(self.groupBox_file_path_input_orgBcg, 0, 0, 1, 2)
@ -112,12 +131,31 @@ class Ui_MainWindow_precisely_align_input_setting(object):
self.groupBox_file_path_input_BCG.setObjectName(u"groupBox_file_path_input_BCG")
self.verticalLayout_5 = QVBoxLayout(self.groupBox_file_path_input_BCG)
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
self.horizontalLayout_4 = QHBoxLayout()
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
self.label_4 = QLabel(self.groupBox_file_path_input_BCG)
self.label_4.setObjectName(u"label_4")
self.label_4.setFont(font)
self.horizontalLayout_4.addWidget(self.label_4)
self.spinBox_input_freq_BCG = QSpinBox(self.groupBox_file_path_input_BCG)
self.spinBox_input_freq_BCG.setObjectName(u"spinBox_input_freq_BCG")
self.spinBox_input_freq_BCG.setFont(font)
self.spinBox_input_freq_BCG.setMinimum(1)
self.spinBox_input_freq_BCG.setMaximum(1000000)
self.horizontalLayout_4.addWidget(self.spinBox_input_freq_BCG)
self.verticalLayout_5.addLayout(self.horizontalLayout_4)
self.plainTextEdit_file_path_input_BCG = QPlainTextEdit(self.groupBox_file_path_input_BCG)
self.plainTextEdit_file_path_input_BCG.setObjectName(u"plainTextEdit_file_path_input_BCG")
self.verticalLayout_5.addWidget(self.plainTextEdit_file_path_input_BCG)
self.verticalLayout_5.setStretch(0, 3)
self.verticalLayout_5.setStretch(1, 3)
self.gridLayout_2.addWidget(self.groupBox_file_path_input_BCG, 1, 0, 1, 1)
@ -228,12 +266,14 @@ class Ui_MainWindow_precisely_align_input_setting(object):
self.groupBox_file_path_save.setTitle(QCoreApplication.translate("MainWindow_precisely_align_input_setting", u"\u5bf9\u9f50\u4fe1\u606f\u4fdd\u5b58\u8def\u5f84", None))
self.plainTextEdit_file_path_save_AlignInfo.setPlaceholderText(QCoreApplication.translate("MainWindow_precisely_align_input_setting", u"\u4fdd\u5b58\u8def\u5f84", None))
self.groupBox_file_path_input_orgBcg.setTitle(QCoreApplication.translate("MainWindow_precisely_align_input_setting", u"\u539f\u59cborgBcg\u8def\u5f84", None))
self.label_5.setText(QCoreApplication.translate("MainWindow_precisely_align_input_setting", u"\u91c7\u6837\u7387(Hz)\uff1a", None))
self.plainTextEdit_file_path_input_orgBcg.setPlainText("")
self.plainTextEdit_file_path_input_orgBcg.setPlaceholderText(QCoreApplication.translate("MainWindow_precisely_align_input_setting", u"\u6587\u4ef6\u8def\u5f84", None))
self.groupBox_file_path_save_3.setTitle(QCoreApplication.translate("MainWindow_precisely_align_input_setting", u"\u5bf9\u9f50J\u5cf0\u548cR\u5cf0\u4fdd\u5b58\u8def\u5f84", None))
self.plainTextEdit_file_path_save_Jpeak.setPlaceholderText(QCoreApplication.translate("MainWindow_precisely_align_input_setting", u"\u4fdd\u5b58\u8def\u5f84", None))
self.plainTextEdit_file_path_save_Rpeak.setPlaceholderText(QCoreApplication.translate("MainWindow_precisely_align_input_setting", u"\u4fdd\u5b58\u8def\u5f84", None))
self.groupBox_file_path_input_BCG.setTitle(QCoreApplication.translate("MainWindow_precisely_align_input_setting", u"\u9884\u5904\u7406\u540e\u7684BCG\u8def\u5f84", None))
self.label_4.setText(QCoreApplication.translate("MainWindow_precisely_align_input_setting", u"\u91c7\u6837\u7387(Hz)\uff1a", None))
self.plainTextEdit_file_path_input_BCG.setPlainText("")
self.plainTextEdit_file_path_input_BCG.setPlaceholderText(QCoreApplication.translate("MainWindow_precisely_align_input_setting", u"\u6587\u4ef6\u8def\u5f84", None))
self.groupBox_file_path_input_Jpeak.setTitle(QCoreApplication.translate("MainWindow_precisely_align_input_setting", u"\u4eba\u5de5\u7ea0\u6b63\u540e\u7684J\u5cf0\u8def\u5f84", None))

View File

@ -89,7 +89,38 @@
<property name="title">
<string>原始orgBcg路径</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8" stretch="3">
<layout class="QVBoxLayout" name="verticalLayout_8" stretch="0,3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QLabel" name="label_5">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>采样率(Hz)</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_input_freq_orgBcg">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>1000000</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QPlainTextEdit" name="plainTextEdit_file_path_input_orgBcg">
<property name="plainText">
@ -131,7 +162,38 @@
<property name="title">
<string>预处理后的BCG路径</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5" stretch="3">
<layout class="QVBoxLayout" name="verticalLayout_5" stretch="0,3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="label_4">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>采样率(Hz)</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_input_freq_BCG">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>1000000</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QPlainTextEdit" name="plainTextEdit_file_path_input_BCG">
<property name="plainText">