更新了<BCG的质量标注>和<呼吸可用性及间期标注>的界面

This commit is contained in:
2025-05-29 21:13:44 +08:00
parent b01e2f1161
commit e379aa6a4a
5 changed files with 291 additions and 112 deletions

View File

@ -293,14 +293,20 @@ class MainWindow_bcg_quality_label(QMainWindow):
if (sender == self.ui.pushButton_input or
sender == self.ui.pushButton_prev or
sender == self.ui.pushButton_next or
self.ui.tableWidget_a1 or
self.ui.tableWidget_a2 or
self.ui.tableWidget_b1 or
self.ui.tableWidget_b2 or
self.ui.tableWidget_c or
self.ui.tableWidget_f or
self.ui.checkBox_highlight_longest_continuous or
self.ui.checkBox_display_afterfilter):
sender == self.ui.tableWidget_a1 or
sender == self.ui.tableWidget_a2 or
sender == self.ui.tableWidget_b1 or
sender == self.ui.tableWidget_b2 or
sender == self.ui.tableWidget_c or
sender == self.ui.tableWidget_f or
sender == self.ui.checkBox_highlight_longest_continuous or
sender == self.ui.checkBox_display_afterfilter or
sender == self.ui.checkBox_allin or
sender == self.ui.checkBox_type1 or
sender == self.ui.checkBox_type2 or
sender == self.ui.checkBox_type3 or
sender == self.ui.checkBox_type4 or
sender == self.ui.checkBox_type5):
try:
artifact_type_seq = array([])
artifact_type_seq = artifact_type_seq.astype(int64)
@ -336,8 +342,8 @@ class MainWindow_bcg_quality_label(QMainWindow):
display_data[Config["CurrentDataIdx"]: Config["CurrentDataIdx"] + length],
label=Constants.BCG_QUALITY_LABEL_PLOT_LABEL_SIGNAL, color=Constants.PLOT_COLOR_BLUE)
for i in artifact_type_seq:
mask[i] = self.data.artifact_mask[Config["CurrentDataIdx"]: Config["CurrentDataIdx"] + length] == i
mask[i] = (display_data[Config["CurrentDataIdx"]: Config["CurrentDataIdx"] + length] *
mask[i] = self.data.artifact_mask[Config["CurrentDataIdx"]:Config["CurrentDataIdx"] + length] == i
mask[i] = (display_data[Config["CurrentDataIdx"]:Config["CurrentDataIdx"] + length] *
mask[i]).astype(float64)
place(mask[i], mask[i] == 0, nan)
self.ax0.plot(arange(Config["CurrentDataIdx"], Config["CurrentDataIdx"] + length), mask[i],