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

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

@@ -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)