添加公式方法

This commit is contained in:
DXC
2026-06-15 14:55:32 +08:00
parent f73a7d8999
commit a9e77d2ad0
5 changed files with 18 additions and 18 deletions

View File

@ -76,7 +76,7 @@ class Step5CleanPanel(QWidget):
"输出处理后CSV:",
"CSV Files (*.csv);;All Files (*.*)"
)
self.output_file.line_edit.setPlaceholderText("processed_data.csv")
self.output_file.line_edit.setPlaceholderText("cleaned_sampling_data.csv")
layout.addWidget(self.output_file)
# 启用步骤
@ -127,9 +127,9 @@ class Step5CleanPanel(QWidget):
self.work_dir = None
if self.work_dir:
output_dir = os.path.join(self.work_dir, "4_processed_data")
output_dir = os.path.join(self.work_dir, "5_Data_Cleaning")
os.makedirs(output_dir, exist_ok=True)
default_output_path = os.path.join(output_dir, "processed_data.csv").replace('\\', '/')
default_output_path = os.path.join(output_dir, "cleaned_sampling_data.csv").replace('\\', '/')
self.output_file.set_path(default_output_path)
else:
self.output_file.set_path("")