Step5 输出文件名统一为 processed_data.csv(修复 GUI/算法断链)
实际落盘(data_preparation_step.py:32、runner.py:101)一直为 processed_data.csv,但 GUI 三处残留旧名 cleaned_sampling_data.csv:注册表 step_default_outputs['step5_clean']、面板占位符、默认输出路径生成。本次统一替换,与 PipelineRunner/算法真实产物对齐。
This commit is contained in:
@ -76,7 +76,7 @@ class Step5CleanPanel(QWidget):
|
|||||||
"输出处理后CSV:",
|
"输出处理后CSV:",
|
||||||
"CSV Files (*.csv);;All Files (*.*)"
|
"CSV Files (*.csv);;All Files (*.*)"
|
||||||
)
|
)
|
||||||
self.output_file.line_edit.setPlaceholderText("cleaned_sampling_data.csv")
|
self.output_file.line_edit.setPlaceholderText("processed_data.csv")
|
||||||
layout.addWidget(self.output_file)
|
layout.addWidget(self.output_file)
|
||||||
|
|
||||||
# 启用步骤
|
# 启用步骤
|
||||||
@ -129,7 +129,7 @@ class Step5CleanPanel(QWidget):
|
|||||||
if self.work_dir:
|
if self.work_dir:
|
||||||
output_dir = os.path.join(self.work_dir, "5_Data_Cleaning")
|
output_dir = os.path.join(self.work_dir, "5_Data_Cleaning")
|
||||||
os.makedirs(output_dir, exist_ok=True)
|
os.makedirs(output_dir, exist_ok=True)
|
||||||
default_output_path = os.path.join(output_dir, "cleaned_sampling_data.csv").replace('\\', '/')
|
default_output_path = os.path.join(output_dir, "processed_data.csv").replace('\\', '/')
|
||||||
self.output_file.set_path(default_output_path)
|
self.output_file.set_path(default_output_path)
|
||||||
else:
|
else:
|
||||||
self.output_file.set_path("")
|
self.output_file.set_path("")
|
||||||
|
|||||||
@ -1369,7 +1369,7 @@ class WaterQualityGUI(QMainWindow):
|
|||||||
'step2': "2_Glint_Detection/severe_glint_area.dat",
|
'step2': "2_Glint_Detection/severe_glint_area.dat",
|
||||||
'step3': "3_deglint/deglint_kutser.bsq",
|
'step3': "3_deglint/deglint_kutser.bsq",
|
||||||
'step4_sampling': "4_sampling/sampling_spectra.csv",
|
'step4_sampling': "4_sampling/sampling_spectra.csv",
|
||||||
'step5_clean': "5_Data_Cleaning/cleaned_sampling_data.csv",
|
'step5_clean': "5_Data_Cleaning/processed_data.csv",
|
||||||
'step6_feature': "6_Spectral_Feature_Extraction/training_spectra.csv",
|
'step6_feature': "6_Spectral_Feature_Extraction/training_spectra.csv",
|
||||||
'step7_index': "7_Water_Quality_Indices/training_spectra_indices.csv",
|
'step7_index': "7_Water_Quality_Indices/training_spectra_indices.csv",
|
||||||
'step8_ml_train': "8_Supervised_Model_Training/",
|
'step8_ml_train': "8_Supervised_Model_Training/",
|
||||||
|
|||||||
Reference in New Issue
Block a user