From 046a9e8c5dd62b77be96f09862dc5fd2ec6259a7 Mon Sep 17 00:00:00 2001 From: marques <20172333133@m.scnu.edu.cn> Date: Fri, 25 Jul 2025 16:51:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=8E=92SA=E6=A0=87=E7=AD=BE=E7=9A=84?= =?UTF-8?q?=E7=B4=A2=E5=BC=95=EF=BC=8C=E4=BB=8E1=E5=BC=80=E5=A7=8B?= =?UTF-8?q?=E5=B9=B6=E5=91=BD=E5=90=8D=EF=BC=8C=E5=90=8C=E6=97=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=8E=92=E5=BA=8F=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- func/Module_cut_PSG.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/func/Module_cut_PSG.py b/func/Module_cut_PSG.py index 5f87e88..b68ad38 100644 --- a/func/Module_cut_PSG.py +++ b/func/Module_cut_PSG.py @@ -336,10 +336,10 @@ class Data: DataFrame(raw.reshape(-1)).to_csv(Path(Config["Path"]["SaveFolder"]) / Path((Config["ChannelSave"][key] + str(self.freq[key]) + Config["EndWith"][key])), index=False, header=False) # 重排index,从1开始,并给index命名 + self.SALabel.sort_values(by=["Start"], inplace=True) self.SALabel.reset_index(drop=True, inplace=True) self.SALabel.index = self.SALabel.index + 1 self.SALabel.index.name = "Index" - self.SALabel.sort_values(by=["Start"], inplace=True) self.SALabel.to_csv(Path(Config["Path"]["SaveFolder"]) / Path((Config["LabelSave"]["SA Label"] + Config["EndWith"]["SA Label"])), encoding="gbk") except PermissionError as e: