X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=cluster_tools%2FmergeStatFile.py;h=ab5028954ce62feeab9953d0baf3af6dc0eb4f49;hb=f48c960aef6e0a5a4edea516b062197db009e25f;hp=a1cd573cdb21e5f23488992c401d029a74d6b17a;hpb=2deed840ca9962923a0c97f03ff8d5719c7179b3;p=clitk.git 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) -