重构爆管定位请求,移除不必要的时间参数

This commit is contained in:
2026-03-07 14:25:23 +08:00
parent 78a57f5c56
commit f5a7e5b3c9
4 changed files with 77 additions and 79 deletions
+1 -1
View File
@@ -29,6 +29,7 @@ DEFAULT_N_WORKERS = max(1, min((os.cpu_count() or 1) - 1, 4))
def run_leakage_identification(
network: str,
username: str,
observed_pressure_data: (
str | pd.DataFrame | dict[str, list[Any]] | list[dict[str, Any]] | None
) = None,
@@ -47,7 +48,6 @@ def run_leakage_identification(
scada_end: datetime | str | None = None,
sensor_nodes: list[str] | None = None,
scheme_name: str | None = None,
username: str = "admin",
) -> dict[str, Any]:
os.makedirs(output_dir, exist_ok=True)
inp_path = _prepare_leakage_inp(network)