修复了<呼吸可用性及间期标注>中绘图失败的问题

This commit is contained in:
2025-05-30 20:46:15 +08:00
parent e23f3e8ee0
commit 31a6160c97

View File

@ -416,7 +416,7 @@ class MainWindow_resp_quality_label(QMainWindow):
mask = mask.astype(float64)
for i in artifact_type_seq:
mask[i] = self.data.artifact_mask[begin_OrgBCG:end_OrgBCG] == i
mask[i] = (BDR[begin_OrgBCG:end_OrgBCG] * mask[i]).astype(float64)
mask[i] = (BDR * mask[i]).astype(float64)
place(mask[i], mask[i] == 0, nan)
self.ax0.plot(arange(begin_OrgBCG, end_OrgBCG), mask[i],
label=f"{Constants.RESP_QUALITY_LABEL_PLOT_LABEL_ARTIFACT}{i}", color=Constants.PLOT_COLOR_RED,