From 7eb34b5312974f601d1117eeaf6393b9648be31c Mon Sep 17 00:00:00 2001 From: Jonathan Herman Date: Fri, 12 Apr 2013 15:12:22 -0400 Subject: Improved error handling in parse_ and plot_exps.py. --- parse/tuple_table.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'parse/tuple_table.py') diff --git a/parse/tuple_table.py b/parse/tuple_table.py index 491ea7b..47fb6b6 100644 --- a/parse/tuple_table.py +++ b/parse/tuple_table.py @@ -78,7 +78,7 @@ class ReducedTupleTable(TupleTable): val = kv[col] try: - float(val) + float(str(val)) except: # Only vary numbers. Otherwise, just have seperate files continue @@ -93,9 +93,6 @@ class ReducedTupleTable(TupleTable): Leaf = namedtuple('Leaf', ['stat', 'variable', 'base', 'summary', 'config', 'values']) - def next_type(path): - return path.pop() if path[-1] in Type else Type.Avg - def leafs(): for path, node in dir_map.leafs(): # The path will be of at least size 1: the filename -- cgit v1.2.2