Rename pipeline method names to match step numbers (Step4)
This commit is contained in:
@ -323,18 +323,17 @@ class WorkerThread(QThread):
|
||||
'step1': 'step1_generate_water_mask',
|
||||
'step2': 'step2_find_glint_area',
|
||||
'step3': 'step3_remove_glint',
|
||||
'step4': 'step4_process_csv',
|
||||
'step5': 'step5_extract_training_spectra',
|
||||
'step7': 'step7_water_quality_indices',
|
||||
'step8': 'step8_ml_modeling',
|
||||
'step4': 'step5_process_csv',
|
||||
'step5': 'step6_extract_spectra',
|
||||
'step7': 'step7_calc_indices',
|
||||
'step8': 'step8_train_ml',
|
||||
'step8_non_empirical_modeling': 'step8_non_empirical_modeling',
|
||||
'step8_qaa': 'step8_qaa_inversion',
|
||||
'step9': 'step9_watercolor_inversion',
|
||||
'step9_concentration': 'step9_concentration_inversion',
|
||||
'step10': 'step10_sampling',
|
||||
'step11_ml': 'step11_ml_prediction',
|
||||
'step10': 'step4_sampling',
|
||||
'step11_ml': 'step9_predict_ml',
|
||||
'step11': 'step11_non_empirical_prediction',
|
||||
'step14': 'step14_distribution_map'
|
||||
'step14': 'step10_map'
|
||||
}
|
||||
|
||||
if step_name not in step_method_map:
|
||||
@ -350,12 +349,6 @@ class WorkerThread(QThread):
|
||||
result = method(**config)
|
||||
return result
|
||||
|
||||
# step9_concentration_inversion 同理,必须透传完整 config dict
|
||||
if step_name == 'step9_concentration':
|
||||
method = getattr(self.pipeline, method_name)
|
||||
result = method(**config)
|
||||
return result
|
||||
|
||||
# 透传面板顶层传入的外部预训练模型(GUI step11_prediction_panel 通过 config['_external_model'] 传入)
|
||||
# 非空才覆盖(遵循 feedback_never_overwrite_with_empty 原则)
|
||||
for key in ('_external_model', '_external_model_path',
|
||||
|
||||
Reference in New Issue
Block a user