Refine
This commit is contained in:
@@ -999,7 +999,7 @@ def run_simulation(name: str, simulation_type: str, modify_pattern_start_time: s
|
||||
|
||||
# 运行并返回结果
|
||||
result = run_project(name_c)
|
||||
print(f'Simulation result : ' + result)
|
||||
# print(f'Simulation result : ' + result)
|
||||
|
||||
time_cost_end = time.perf_counter()
|
||||
print('{} -- Hydraulic simulation finished, cost time: {:.2f} s.'.format(
|
||||
@@ -1008,7 +1008,8 @@ def run_simulation(name: str, simulation_type: str, modify_pattern_start_time: s
|
||||
|
||||
close_project(name_c)
|
||||
|
||||
print(name_c)
|
||||
time.sleep(30) # wait 30 seconds
|
||||
|
||||
output = Output(f"./temp/{name_c}.db.out")
|
||||
node_result = output.node_results()
|
||||
link_result = output.link_results()
|
||||
|
||||
Reference in New Issue
Block a user