补充 __init__.py 导出;将 from app.services.tjnetwork import * 改为显式导入;删除以下仅做 @staticmethod 转发的类,保留模块级函数
This commit is contained in:
@@ -135,35 +135,3 @@ def _build_node_pipe_maps(
|
||||
return node_pipe_dic, couple_node_length
|
||||
|
||||
|
||||
class NetworkModelReader:
|
||||
@staticmethod
|
||||
def load_inp(*args, **kwargs):
|
||||
return load_inp(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def read_inf_inp(*args, **kwargs):
|
||||
return read_inf_inp(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def read_inf_inp_other(*args, **kwargs):
|
||||
return read_inf_inp_other(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def construct_graph(*args, **kwargs):
|
||||
return construct_graph(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def cal_pipe_coordinate(*args, **kwargs):
|
||||
return cal_pipe_coordinate(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def cal_node_coordinate(*args, **kwargs):
|
||||
return cal_node_coordinate(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def produce_pattern_value(*args, **kwargs):
|
||||
return produce_pattern_value(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def build_node_pipe_maps(*args, **kwargs):
|
||||
return _build_node_pipe_maps(*args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user