From b11fe504191b9742d1400b5bbfc2fa8b25430e1e Mon Sep 17 00:00:00 2001 From: marques Date: Thu, 18 Dec 2025 21:20:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E4=BB=B6=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=96=B0=E5=A2=9E=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E8=B7=AF=E5=BE=84=E5=8F=82=E6=95=B0=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=BC=BA=E8=BE=93=E5=85=A5=E6=96=87=E4=BB=B6=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- func/Module_SA_label_v2.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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])