Refine
This commit is contained in:
@@ -1030,7 +1030,13 @@ 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))
|
||||
# DingZQ 下面这几句一定要这样,不然读取不了
|
||||
time.sleep(5) # wait 5 seconds
|
||||
|
||||
tmp_file = './temp/simulation.result.out'
|
||||
shutil.copy(f'./temp/{name_c}.db.opt', tmp_file)
|
||||
output = Output(tmp_file)
|
||||
|
||||
node_result = output.node_results()
|
||||
link_result = output.link_results()
|
||||
num_periods_result = output.times()['num_periods']
|
||||
|
||||
Reference in New Issue
Block a user