diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-09-30 18:25:38 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-09-30 18:25:38 -0400 |
commit | c8cb14963511d5d1a3eb46624bcc0d2bcdf3b9bc (patch) | |
tree | 4b44c2814c085b384563bc27b50fdbe8caebe590 /parse_exps.py | |
parent | c6adbabd0bf897a1e750fe07bf068e285dd82108 (diff) |
Added more robust error handling inspired by color tests.
Diffstat (limited to 'parse_exps.py')
-rwxr-xr-x | parse_exps.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/parse_exps.py b/parse_exps.py index 3a1d1b9..c91a654 100755 --- a/parse_exps.py +++ b/parse_exps.py | |||
@@ -90,6 +90,10 @@ def main(): | |||
90 | 90 | ||
91 | (plain_exps, scaling_bases) = gen_exp_data(args, base_conf, col_map) | 91 | (plain_exps, scaling_bases) = gen_exp_data(args, base_conf, col_map) |
92 | 92 | ||
93 | if base_conf and base_conf.keys()[0] not in col_map: | ||
94 | raise IOError("Base column '%s' not present in any parameters!" % | ||
95 | base_conf.keys()[0]) | ||
96 | |||
93 | base_table = TupleTable(col_map) | 97 | base_table = TupleTable(col_map) |
94 | result_table = TupleTable(col_map) | 98 | result_table = TupleTable(col_map) |
95 | 99 | ||
@@ -105,6 +109,7 @@ def main(): | |||
105 | ft.extract_ft_data(exp.data_files.ft, result, conf.BASE_EVENTS) | 109 | ft.extract_ft_data(exp.data_files.ft, result, conf.BASE_EVENTS) |
106 | 110 | ||
107 | if exp.data_files.st: | 111 | if exp.data_files.st: |
112 | base = None | ||
108 | if base_conf: | 113 | if base_conf: |
109 | # Try to find a scaling base | 114 | # Try to find a scaling base |
110 | base_params = copy.deepcopy(exp.params) | 115 | base_params = copy.deepcopy(exp.params) |