From: David Sarrut Date: Wed, 25 Feb 2015 09:05:46 +0000 (+0100) Subject: More tolerant stat file merging X-Git-Tag: v1.4.0~95^2~5 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=6b738e4a4b1242db568c2693bc68cacaf7c8f668;p=clitk.git More tolerant stat file merging --- 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) -