修正在服务器上的路径

This commit is contained in:
mmmistgun 2022-03-30 16:09:01 +08:00
parent 6e67c277fc
commit af4acb492f
2 changed files with 9 additions and 5 deletions

View File

@ -15,10 +15,14 @@ from utils.Quality_Relabel import Quality_Relabel
frequency = 100
# 心晓数据采样率
bcg_frequency = 1000
PSG_Data_Path = Path("Data/PSG/")
PSG_Label_Path = Path("Data/PSG_label/")
BCG_Data_Path = Path("Data/BCG/")
BCG_Label_Path = Path("Data/BCG_label/")
# PSG_Data_Path = Path("Data/PSG/")
# PSG_Label_Path = Path("Data/PSG_label/")
# BCG_Data_Path = Path("Data/BCG/")
# BCG_Label_Path = Path("Data/BCG_label/")
PSG_Data_Path = Path("I:/CXH/Quality_Relabel/Data/PSG/")
PSG_Label_Path = Path("I:/CXH/Quality_Relabel/Data/PSG_label/")
BCG_Data_Path = Path("I:/CXH/Quality_Relabel/Data/BCG/")
BCG_Label_Path = Path("I:/CXH/Quality_Relabel/Data/BCG_label/")
all_path = [PSG_Data_Path, PSG_Label_Path, BCG_Data_Path, BCG_Label_Path]
# end-----一般不用修改------

View File

@ -179,7 +179,7 @@ class Quality_Relabel:
self.signal_select['xin_xiao_respire'] = signal2
def read_event(self):
bcg_label_path = self.BCG_Label_Path / f"{self.sampNo}_label_all.csv"
bcg_label_path = self.BCG_Label_Path / f"export{self.sampNo}_all.csv"
ecg_label_path = self.PSG_Label_Path / f"export{self.sampNo}.csv"
if not bcg_label_path.exists():