Refine
This commit is contained in:
@@ -891,6 +891,10 @@ def run_simulation(name: str, simulation_type: str, modify_pattern_start_time: s
|
||||
node_result = output.node_results()
|
||||
link_result = output.link_results()
|
||||
num_periods_result = output.times()['num_periods']
|
||||
|
||||
print("simulation_type", simulation_type)
|
||||
print("before store result")
|
||||
|
||||
# print(num_periods_result)
|
||||
# print(node_result)
|
||||
# 存储
|
||||
@@ -900,6 +904,8 @@ def run_simulation(name: str, simulation_type: str, modify_pattern_start_time: s
|
||||
influxdb_api.store_scheme_simulation_result_to_influxdb(node_result, link_result, modify_pattern_start_time,
|
||||
num_periods_result, scheme_Type, scheme_Name)
|
||||
|
||||
print("after store result")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# 计算前,获取scada_info中的信息,按照设定的方法修改pg数据库
|
||||
|
||||
Reference in New Issue
Block a user