diff --git a/func/Module_SA_label_v2.py b/func/Module_SA_label_v2.py index 72c309b..6212817 100644 --- a/func/Module_SA_label_v2.py +++ b/func/Module_SA_label_v2.py @@ -129,7 +129,9 @@ class SettingWindow(QMainWindow): self.params.update({ "Path": { - + "psg_path": sync_psg_path, + "bcg_path": sync_bcg_path, + "label_path": label_path, "Input_OrgBCG": sync_bcg_path, "Input_Tho": sync_psg_path, "Input_Abd": sync_psg_path, @@ -211,8 +213,15 @@ class SettingWindow(QMainWindow): self.params["Config"]["InputConfig"][f"{_type}Freq"] = result.data["freq"] else: - self.params["Path"][f"Input_{_type}"] = file_path - self.params["Config"]["InputConfig"][f"{_type}Freq"] = -1 + filename_start = filename_start.replace("Sync", "RoughCut") + result = PublicFunc.examine_file(file_path, filename_start, endswith) + if result.status: + self.params["Path"][f"Input_{_type}"] = result.data["path"] + + self.params["Config"]["InputConfig"][f"{_type}Freq"] = result.data["freq"] + else: + self.params["Path"][f"Input_{_type}"] = file_path + self.params["Config"]["InputConfig"][f"{_type}Freq"] = -1 for signal_type in check_signal_type_list: signal_file_path = Path(self.params["Path"][signal_type])