From 6b738e4a4b1242db568c2693bc68cacaf7c8f668 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Wed, 25 Feb 2015 10:05:46 +0100 Subject: [PATCH] More tolerant stat file merging --- cluster_tools/mergeStatFile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cluster_tools/mergeStatFile.py b/cluster_tools/mergeStatFile.py index a1cd573..ab50289 100755 --- a/cluster_tools/mergeStatFile.py +++ b/cluster_tools/mergeStatFile.py @@ -27,7 +27,9 @@ def parse_stat_file(filename): keys = {} for line in open(filename,"r").readlines(): match = linere.match(line) - assert(match is not None) + #assert(match is not None) + if match is None: + continue groups = match.groups() if groups[0] not in mergedlines: continue @@ -88,4 +90,3 @@ jkeys = parse_stat_file(sys.argv[4]) keys = merge_keys(ikeys,jkeys) output = format_keys(keys) open(sys.argv[6],"w").write(output) - -- 2.47.1