refactor(gui): 重命名面板序号 step4-11,采样点布设移至 step4,ML 建模移至 step9

This commit is contained in:
DXC
2026-06-11 11:13:16 +08:00
parent 184f5fe9f4
commit 3c4d4081a4
16 changed files with 1538 additions and 1939 deletions

View File

@ -20,13 +20,16 @@ from typing import Any, Dict, List, Optional, Set
# ============================================================
STEP_MAP_OLD_TO_NEW: Dict[str, str] = {
"step5_5": "step8",
"step5_5": "step7",
"step6_5": "step8_non_empirical_modeling",
"step6_75": "step9",
"step8_5": "step11",
"step8_75": "step12",
"step7": "step10",
"step7": "step8",
"step8": "step7",
"step9": "step14",
"step10": "step4",
"step11_ml": "step10",
"step11": "step11",
}
STEP_MAP_NEW_TO_OLD: Dict[str, str] = {v: k for k, v in STEP_MAP_OLD_TO_NEW.items()}

View File

@ -115,14 +115,14 @@ PIPELINE_STEPS: List[StepSpec] = [
description="实测样本点光谱提取",
),
StepSpec(
step_id="step8", method_name="step8_water_quality_indices",
step_id="step7", method_name="step7_water_quality_indices",
requires=["training_csv_path"], produces=["indices_path", "trad_indices_dir"],
required_input_files=["training_csv_path"],
output_file="{work_dir}/6_water_quality_indices/training_spectra_indices.csv",
description="水质光谱指数计算双轨输出A轨宽表 + B轨单文件",
description="水质参数指数计算双轨输出A轨宽表 + B轨单文件",
),
StepSpec(
step_id="step7", method_name="step7_ml_modeling",
step_id="step8", method_name="step8_ml_modeling",
requires=["training_csv_path"], produces=["models_dir"],
required_input_files=["training_csv_path"],
output_file="{work_dir}/7_Supervised_Model_Training/best_models.pkl",
@ -138,18 +138,17 @@ PIPELINE_STEPS: List[StepSpec] = [
description="非经验统计回归",
),
StepSpec(
step_id="step9", method_name="step9_custom_regression",
requires=["indices_path"], produces=["models_dir"],
parameter_map={"indices_path": "csv_path"},
required_input_files=["indices_path"],
output_file="{work_dir}/9_Custom_Regression_Modeling/custom_regression_models.pkl",
description="自定义回归分析",
step_id="step9", method_name="step9_watercolor_inversion",
requires=["deglint_img_path", "water_mask_path"], produces=["watercolor_index_dir"],
required_input_files=["deglint_img_path"],
output_file="{work_dir}/9_WaterColor_Index_Images",
description="水色指数反演BSQ 影像直接处理)",
),
StepSpec(
step_id="step10", method_name="step10_sampling",
requires=["deglint_img_path", "water_mask_path"], produces=["sampling_csv_path"],
required_input_files=["deglint_img_path", "water_mask_path"],
output_file="{work_dir}/10_sampling/sampling_spectra.csv",
output_file="{work_dir}/4_sampling/sampling_spectra.csv",
description="整景密集采样点生成 + 光谱提取",
),
StepSpec(
@ -167,15 +166,6 @@ PIPELINE_STEPS: List[StepSpec] = [
output_file="{work_dir}/11_12_13_predictions/non_empirical_predictions",
description="非经验模型预测",
),
StepSpec(
step_id="step12", method_name="step12_custom_regression_prediction",
requires=["sampling_csv_path", "models_dir", "formula_csv_path"],
produces=["prediction_dir"],
parameter_map={"models_dir": "custom_regression_dir"},
required_input_files=["sampling_csv_path", "models_dir", "formula_csv_path"],
output_file="{work_dir}/11_12_13_predictions/custom_regression_predictions",
description="自定义回归预测",
),
StepSpec(
step_id="step14", method_name="step14_distribution_map",
requires=["prediction_csv_path", "boundary_shp_path"],