修改关阀分析算法,支持多管段分析
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user