aboutsummaryrefslogtreecommitdiffstats
path: root/run_exps.py
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2012-11-26 16:02:48 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2012-11-26 16:02:48 -0500
commitcb8db5d30ee769304c2c2b00f2a7d9bcb3c4098f (patch)
treec5352d84285af565d5246c3eb861ffba709761f1 /run_exps.py
parent41c867480f1e20bd3b168258ed71450499ea6ccf (diff)
Removed 2-step parse for scheduling statistics.
Diffstat (limited to 'run_exps.py')
-rwxr-xr-xrun_exps.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/run_exps.py b/run_exps.py
index 1d2cc2e..24f71e4 100755
--- a/run_exps.py
+++ b/run_exps.py
@@ -39,7 +39,7 @@ def parse_args():
39 39
40 40
41def convert_data(data): 41def convert_data(data):
42 """Convert a non-python schedule file into the python format""" 42 '''Convert a non-python schedule file into the python format'''
43 regex = re.compile( 43 regex = re.compile(
44 r"(?P<PROC>^" 44 r"(?P<PROC>^"
45 r"(?P<HEADER>/proc/[\w\-]+?/)?" 45 r"(?P<HEADER>/proc/[\w\-]+?/)?"
@@ -67,7 +67,7 @@ def convert_data(data):
67 return {'proc' : procs, 'spin' : spins} 67 return {'proc' : procs, 'spin' : spins}
68 68
69def fix_paths(schedule, exp_dir, sched_file): 69def fix_paths(schedule, exp_dir, sched_file):
70 """Replace relative paths of command line arguments with absolute ones.""" 70 '''Replace relative paths of command line arguments with absolute ones.'''
71 for (idx, (spin, args)) in enumerate(schedule['spin']): 71 for (idx, (spin, args)) in enumerate(schedule['spin']):
72 for arg in re.split(" +", args): 72 for arg in re.split(" +", args):
73 abspath = "%s/%s" % (exp_dir, arg) 73 abspath = "%s/%s" % (exp_dir, arg)