From 29841ddf6c5a475b6ae5a2d87e7c6cfff8aa39b6 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sun, 9 Feb 2025 12:54:47 +0800 Subject: [PATCH] Refine --- simulation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simulation.py b/simulation.py index c915939..888d47c 100644 --- a/simulation.py +++ b/simulation.py @@ -999,6 +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) time_cost_end = time.perf_counter() print('{} -- Hydraulic simulation finished, cost time: {:.2f} s.'.format( @@ -1007,7 +1008,8 @@ def run_simulation(name: str, simulation_type: str, modify_pattern_start_time: s close_project(name_c) - output = Output("./temp/{}.db.out".format(name_c)) + print(name_c) + output = Output(f"./temp/{name_c}.db.out") node_result = output.node_results() link_result = output.link_results()