修改关阀分析算法,支持多管段分析

This commit is contained in:
2026-02-02 18:03:44 +08:00
parent 9be2028e4c
commit 0755b1a61c
3 changed files with 47 additions and 19 deletions

View File

@@ -238,7 +238,9 @@ async def fastapi_valve_close_analysis(
@router.get("/valve_isolation_analysis/")
async def valve_isolation_endpoint(network: str, accident_element: str):
async def valve_isolation_endpoint(
network: str, accident_element: List[str] = Query(...)
):
return analyze_valve_isolation(network, accident_element)