1、修复了修改采样率后保存数据时保存错误的问题。

2、删去了导入设置中,保存路径随着采样率变化而变化的功能,即采样率变化时将不再把实际的文件保存路径输出到文本框中显示
This commit is contained in:
2025-06-04 21:59:24 +08:00
parent d329476521
commit 06af421ce0
8 changed files with 6 additions and 95 deletions

View File

@ -129,13 +129,6 @@ class SettingWindow(QMainWindow):
Path(Filename.ORGBCG_RAW +
str(self.ui.spinBox_input_freq.value()) +
Params.ENDSWITH_TXT))))
self.ui.plainTextEdit_file_path_save.setPlainText(
str((Path(self.root_path) /
Filename.PATH_ORGBCG_TEXT /
Path(str(self.sampID)) /
Path(Filename.BCG_FILTER +
str(self.ui.spinBox_output_freq.value()) +
Params.ENDSWITH_TXT))))
elif self.mode == "ECG":
self.ui.plainTextEdit_file_path_input.setPlainText(
str((Path(self.root_path) /
@ -144,13 +137,6 @@ class SettingWindow(QMainWindow):
Path(Filename.ECG_RAW +
str(self.ui.spinBox_input_freq.value()) +
Params.ENDSWITH_TXT))))
self.ui.plainTextEdit_file_path_save.setPlainText(
str((Path(self.root_path) /
Filename.PATH_PSG_TEXT /
Path(str(self.sampID)) /
Path(Filename.ECG_FILTER +
str(self.ui.spinBox_output_freq.value()) +
Params.ENDSWITH_TXT))))
else:
raise ValueError("模式不存在")
@ -411,6 +397,7 @@ class Data:
save = Filename.ECG_FILTER
else:
raise ValueError("模式不存在")
if Path(Config["Path"]["Input"]).is_file():
Config["Path"]["Input"] = str(Path(Config["Path"]["Input"]).parent)