修改关阀分析算法,支持多管段分析
This commit is contained in:
@@ -3,5 +3,7 @@ from typing import Any
|
||||
from app.algorithms.valve_isolation import valve_isolation_analysis
|
||||
|
||||
|
||||
def analyze_valve_isolation(network: str, accident_element: str) -> dict[str, Any]:
|
||||
def analyze_valve_isolation(
|
||||
network: str, accident_element: str | list[str]
|
||||
) -> dict[str, Any]:
|
||||
return valve_isolation_analysis(network, accident_element)
|
||||
|
||||
Reference in New Issue
Block a user