fix: 修复下游面板自动填充断裂的三处根因 + 清理过时 pipeline→panel 映射

This commit is contained in:
DXC
2026-06-18 10:28:14 +08:00
parent 2261b4b30e
commit 3f217e95b0
5 changed files with 46 additions and 75 deletions

View File

@ -157,23 +157,6 @@ from src.gui.core.pipeline_mode_dialog import PipelineModeDialog
from src.gui.core.viz_thread import VisualizationWorkerThread, _viz_training_spectra_csv_path
from src.core.workspace_manager import WorkspaceManager
# pipeline step_id → panel step_id 映射pipeline 内部编号与 GUI 面板编号不同)
PIPELINE_TO_PANEL_STEP = {
'step1': 'step1',
'step2': 'step2',
'step3': 'step3',
'step4': 'step5_clean',
'step5': 'step6_feature',
'step7': 'step7_index',
'step8': 'step8_ml_train',
'step9': 'step10_watercolor',
'step10': 'step4_sampling',
'step11_ml': 'step9_ml_predict',
'step11': 'step11_map',
'step14': 'step11_map',
}
class WaterQualityGUI(QMainWindow):
"""水质参数反演分析系统主窗口"""
@ -199,7 +182,6 @@ class WaterQualityGUI(QMainWindow):
# 工作空间管理器(文件扫描、路径发现、配置裁剪)
self.workspace_manager = WorkspaceManager()
self.workspace_manager.set_step_id_mapping(PIPELINE_TO_PANEL_STEP)
# 面板实例字典step_id → panel instance由 create_content_area 填充
self._panels = {}