From c8cb14963511d5d1a3eb46624bcc0d2bcdf3b9bc Mon Sep 17 00:00:00 2001 From: Jonathan Herman Date: Sun, 30 Sep 2012 18:25:38 -0400 Subject: Added more robust error handling inspired by color tests. --- parse_exps.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'parse_exps.py') 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(): (plain_exps, scaling_bases) = gen_exp_data(args, base_conf, col_map) + if base_conf and base_conf.keys()[0] not in col_map: + raise IOError("Base column '%s' not present in any parameters!" % + base_conf.keys()[0]) + base_table = TupleTable(col_map) result_table = TupleTable(col_map) @@ -105,6 +109,7 @@ def main(): ft.extract_ft_data(exp.data_files.ft, result, conf.BASE_EVENTS) if exp.data_files.st: + base = None if base_conf: # Try to find a scaling base base_params = copy.deepcopy(exp.params) -- cgit v1.2.2