改flow patience 1 2 为T P

This commit is contained in:
mmmistgun 2022-04-08 10:39:39 +08:00
parent af4acb492f
commit 8218562aa7

View File

@ -148,7 +148,10 @@ class Quality_Relabel:
if index in self.channel_list: if index in self.channel_list:
# ÖØÃüÃûflow patientͨµÀ # ÖØÃüÃûflow patientͨµÀ
if index == '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 sub_index += 1
signal = file.readSignal(i) signal = file.readSignal(i)
sample_frequency = file.getSampleFrequency(i) sample_frequency = file.getSampleFrequency(i)
@ -304,11 +307,11 @@ class Quality_Relabel:
# »æÖÆ Flow1 # »æÖÆ Flow1
plt.subplot(gs[0]) 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 # »æÖÆ Flow2
plt.subplot(gs[1]) 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']}") title=f"PSG sampNo:{self.sampNo} Epoch:{one_ecg_data['Epoch']} Duration:{one_ecg_data['Duration']}")
plt.subplot(gs[2]) plt.subplot(gs[2])