fix: disable dltb priors for gf3 water workflow

This commit is contained in:
2026-06-15 12:42:10 +08:00
parent f726367cbb
commit 21f4bbe500
4 changed files with 19 additions and 8 deletions
@@ -134,9 +134,14 @@ def run_gf3_hh_hv_water_extraction(
hh = _existing_path(hh_path, label="HH input")
hv = _existing_path(hv_path, label="HV input")
dltb_cache_dir = _optional_existing_path(
params.get("dltb_cache_dir") or settings.GF3_WATER_DLTB_CACHE_DIR,
label="GF3_WATER_DLTB_CACHE_DIR",
use_dltb = _as_bool(params.get("use_dltb"), bool(settings.GF3_WATER_USE_DLTB))
dltb_cache_dir = (
_optional_existing_path(
params.get("dltb_cache_dir") or settings.GF3_WATER_DLTB_CACHE_DIR,
label="GF3_WATER_DLTB_CACHE_DIR",
)
if use_dltb
else None
)
dem = _optional_existing_path(
params.get("dem") or params.get("dem_path") or settings.GF3_WATER_DEM_PATH,
@@ -224,6 +229,7 @@ def run_gf3_hh_hv_water_extraction(
"dltb_cache_dir": str(dltb_cache_dir) if dltb_cache_dir else None,
},
"runtime": {
"dltb_enabled": use_dltb and dltb_cache_dir is not None,
"vector_requested": out_vector,
"vector_runtime_available": vector_runtime_available,
"vector_output_enabled": vector_output_enabled,