补充 __init__.py 导出;将 from app.services.tjnetwork import * 改为显式导入;删除以下仅做 @staticmethod 转发的类,保留模块级函数
This commit is contained in:
@@ -561,47 +561,3 @@ def extract_links(data, link_types, direction):
|
||||
]
|
||||
|
||||
|
||||
class LeakSimulator:
|
||||
@staticmethod
|
||||
def simple_add_leak(*args, **kwargs):
|
||||
return simple_add_leak(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def simple_recover_wn(*args, **kwargs):
|
||||
return simple_recover_wn(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def leak_simulation_pipe_dd_multi_pf(*args, **kwargs):
|
||||
return leak_simulation_pipe_dd_multi_pf(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def normal_simulation_pf(*args, **kwargs):
|
||||
return normal_simulation_pf(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def normal_simulation_multi_pf(*args, **kwargs):
|
||||
return normal_simulation_multi_pf(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def simple_simulation_pf(*args, **kwargs):
|
||||
return simple_simulation_pf(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def cal_sum_demand(*args, **kwargs):
|
||||
return cal_sum_demand(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def cal_signature_pipe_multi_pf(*args, **kwargs):
|
||||
return cal_signature_pipe_multi_pf(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def cal_possible_pipe(*args, **kwargs):
|
||||
return cal_possible_pipe(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def pick_pipe(*args, **kwargs):
|
||||
return pick_pipe(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def extract_links(*args, **kwargs):
|
||||
return extract_links(*args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user