aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-04-02 10:36:36 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2013-04-02 10:38:36 -0400
commit0d8c9ba50f48f3c2afb571a878117eb2aa50a969 (patch)
tree6bf6f37464180d85200f91a62f38903c74b30714
parent4b75d2b98036195b78d339210ab8d7512d9f2164 (diff)
Minor bug fixes from end-to-end testing.
-rw-r--r--config/config.py2
-rw-r--r--gen/edf_generators.py2
-rwxr-xr-xgen_exps.py2
-rwxr-xr-xparse_exps.py4
-rw-r--r--plot/style.py6
-rwxr-xr-xrun_exps.py2
6 files changed, 9 insertions, 9 deletions
diff --git a/config/config.py b/config/config.py
index 75130fd..49fd234 100644
--- a/config/config.py
+++ b/config/config.py
@@ -16,7 +16,7 @@ BINS = {'rtspin' : get_executable('rtspin', 'liblitmus'),
16 16
17'''Names of output files.''' 17'''Names of output files.'''
18FILES = {'ft_data' : 'ft.bin', 18FILES = {'ft_data' : 'ft.bin',
19 'ft_matches' : r'(ft.*\.bin)|(.*\.ft)', 19 'ft_matches' : r'(ft.*\.bin$)|(.*\.ft)',
20 'linux_data' : 'trace.dat', 20 'linux_data' : 'trace.dat',
21 'sched_data' : 'st-{}.bin', 21 'sched_data' : 'st-{}.bin',
22 'log_data' : 'trace.slog'} 22 'log_data' : 'trace.slog'}
diff --git a/gen/edf_generators.py b/gen/edf_generators.py
index 9bf6b8f..78b0ba1 100644
--- a/gen/edf_generators.py
+++ b/gen/edf_generators.py
@@ -36,7 +36,7 @@ class EdfGenerator(gen.Generator):
36 36
37 self._customize(ts, exp_params) 37 self._customize(ts, exp_params)
38 38
39 self._write_schedule(dict(exp_params.items() + ('task_set', ts))) 39 self._write_schedule(dict(exp_params.items() + [('task_set', ts)]))
40 self._write_params(exp_params) 40 self._write_params(exp_params)
41 41
42 def _customize(self, taskset, exp_params): 42 def _customize(self, taskset, exp_params):
diff --git a/gen_exps.py b/gen_exps.py
index cb05fe7..daee527 100755
--- a/gen_exps.py
+++ b/gen_exps.py
@@ -94,7 +94,7 @@ def main():
94 print("Creating experiments using %s generator..." % gen_name) 94 print("Creating experiments using %s generator..." % gen_name)
95 95
96 params = dict(gen_params.items() + global_params.items()) 96 params = dict(gen_params.items() + global_params.items())
97 generator = GENERATORS[gen_name](params) 97 generator = GENERATORS[gen_name](params=params)
98 98
99 generator.create_exps(opts.out_dir, opts.force, opts.trials) 99 generator.create_exps(opts.out_dir, opts.force, opts.trials)
100 100
diff --git a/parse_exps.py b/parse_exps.py
index 7c75f5f..8aa9b43 100755
--- a/parse_exps.py
+++ b/parse_exps.py
@@ -126,8 +126,8 @@ def main():
126 if opts.ignore: 126 if opts.ignore:
127 for param in opts.ignore.split(","): 127 for param in opts.ignore.split(","):
128 builder.try_remove(param) 128 builder.try_remove(param)
129 # Always average multiple trials 129 # Always average multiple trials
130 builder.try_remove(conf.PARAMS['trial']) 130 builder.try_remove(conf.PARAMS['trial'])
131 131
132 col_map = builder.build() 132 col_map = builder.build()
133 result_table = TupleTable(col_map) 133 result_table = TupleTable(col_map)
diff --git a/plot/style.py b/plot/style.py
index fd1fa97..21c4e7e 100644
--- a/plot/style.py
+++ b/plot/style.py
@@ -7,7 +7,7 @@ class Style(namedtuple('SS', ['marker', 'line', 'color'])):
7 7
8class StyleMap(object): 8class StyleMap(object):
9 '''Maps configs (dicts) to specific line styles.''' 9 '''Maps configs (dicts) to specific line styles.'''
10 DEFAULT = Style('', '', 'k') 10 DEFAULT = Style('', '-', 'k')
11 11
12 def __init__(self, col_list, col_values): 12 def __init__(self, col_list, col_values):
13 '''Assign (some) columns in @col_list to fields in @Style to vary, and 13 '''Assign (some) columns in @col_list to fields in @Style to vary, and
@@ -15,7 +15,8 @@ class StyleMap(object):
15 self.value_map = {} 15 self.value_map = {}
16 self.field_map = {} 16 self.field_map = {}
17 17
18 for field, values in self.__get_all()._asdict().iteritems(): 18 # TODO: undo this, switch to popping mechanism
19 for field, values in reversed([x for x in self.__get_all()._asdict().iteritems()]):
19 if not col_list: 20 if not col_list:
20 break 21 break
21 22
@@ -51,7 +52,6 @@ class StyleMap(object):
51 key = [] 52 key = []
52 53
53 for column, values in self.value_map.iteritems(): 54 for column, values in self.value_map.iteritems():
54 # print("***%s, %s" % column, values)
55 for v in values.keys(): 55 for v in values.keys():
56 sdict = dict([(column, v)]) 56 sdict = dict([(column, v)])
57 style = self.get_style(sdict) 57 style = self.get_style(sdict)
diff --git a/run_exps.py b/run_exps.py
index 4a2d8ab..dd75999 100755
--- a/run_exps.py
+++ b/run_exps.py
@@ -68,7 +68,7 @@ def convert_data(data):
68 r"(?P<ENTRY>[\w\-\/]+)" 68 r"(?P<ENTRY>[\w\-\/]+)"
69 r"\s*{\s*(?P<CONTENT>.*?)\s*?}$)|" 69 r"\s*{\s*(?P<CONTENT>.*?)\s*?}$)|"
70 r"(?P<SPIN>^" 70 r"(?P<SPIN>^"
71 r"(?:(?P<TYPE>[^\d\-]\w*?) )?\s*" 71 r"(?:(?P<TYPE>[^\d\-\s]\w*?) )?\s*"
72 r"(?P<ARGS>[\w\-_\d\. \=]+)\s*$)", 72 r"(?P<ARGS>[\w\-_\d\. \=]+)\s*$)",
73 re.S|re.I|re.M) 73 re.S|re.I|re.M)
74 74