"...git@developer.sourcefind.cn:OpenDAS/torch-harmonics.git" did not exist on "ae8257b5bf52d61741b90da9808072a1682a2a08"
Commit 0e6abbaa authored by Hejing Li's avatar Hejing Li
Browse files

log_parser.py: change some path

parent f77cdb01
...@@ -25,9 +25,10 @@ import os ...@@ -25,9 +25,10 @@ import os
import pathlib import pathlib
import shutil import shutil
import json import json
import re
# How to use # How to use
# $ python3 parser.py ../out/qemu-wire-ib-TCPs-1.json # $ python3 pyexps/parser.py out/qemu-wire-ib-TCPs-1.json
# #
log_file = sys.argv[1] log_file = sys.argv[1]
...@@ -36,10 +37,10 @@ log = open(log_file, 'r') ...@@ -36,10 +37,10 @@ log = open(log_file, 'r')
curdir = pathlib.Path().absolute() curdir = pathlib.Path().absolute()
exp_log = json.load(log) exp_log = json.load(log)
run_num = re.split('-|\.', log_file)[-2]
#Name, starting & ending time #Name, starting & ending time
exp_name = exp_log['exp_name'] exp_name = exp_log['exp_name']
tooutdir = f'../out/{exp_name}' tooutdir = f'out/{exp_name}/{run_num}'
outdir = os.path.join(curdir, tooutdir) outdir = os.path.join(curdir, tooutdir)
if not os.path.exists(outdir): if not os.path.exists(outdir):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment