diff --git a/utils/Quality_Relabel.py b/utils/Quality_Relabel.py index b1685a2..56896bf 100644 --- a/utils/Quality_Relabel.py +++ b/utils/Quality_Relabel.py @@ -148,7 +148,10 @@ class Quality_Relabel: if index in self.channel_list: # 重命名flow patient通道 if index == 'Flow Patient': - index = index + str(sub_index) + if sub_index == 1: + index = "Flow T" + else: + index = "Flow P" sub_index += 1 signal = file.readSignal(i) sample_frequency = file.getSampleFrequency(i) @@ -304,11 +307,11 @@ class Quality_Relabel: # 绘制 Flow1 plt.subplot(gs[0]) - self.plt_channel(plt_=plt, SP=ecg_SP, EP=ecg_EP, channel="Flow Patient1") + self.plt_channel(plt_=plt, SP=ecg_SP, EP=ecg_EP, channel="Flow T") # 绘制 Flow2 plt.subplot(gs[1]) - self.plt_channel(plt_=plt, SP=ecg_SP, EP=ecg_EP, channel="Flow Patient2", + self.plt_channel(plt_=plt, SP=ecg_SP, EP=ecg_EP, channel="Flow P", title=f"PSG sampNo:{self.sampNo} Epoch:{one_ecg_data['Epoch']} Duration:{one_ecg_data['Duration']}") plt.subplot(gs[2])