补充 __init__.py 导出;将 from app.services.tjnetwork import * 改为显式导入;删除以下仅做 @staticmethod 转发的类,保留模块级函数

This commit is contained in:
2026-03-09 17:45:20 +08:00
parent 0b72ac959a
commit c946e1b58b
10 changed files with 56 additions and 223 deletions
+28 -1
View File
@@ -11,7 +11,34 @@ from app.algorithms.simulation.runner import (
)
from app.infra.epanet.epanet import Output
from app.services.scheme_management import store_scheme_info
from app.services.tjnetwork import *
from app.services.tjnetwork import (
ChangeSet,
OPTION_DEMAND_MODEL_PDA,
OPTION_QUALITY_CHEMICAL,
SOURCE_TYPE_SETPOINT,
add_pattern,
add_source,
close_project,
copy_project,
delete_project,
get_demand,
get_emitter,
get_node_links,
get_option,
get_pattern,
get_pipe,
get_source,
get_time,
have_project,
is_junction,
is_project_open,
open_project,
set_demand,
set_emitter,
set_option,
set_source,
set_time,
)
############################################################