]> Creatis software - clitk.git/commitdiff
More tolerant stat file merging
authorDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Wed, 25 Feb 2015 09:05:46 +0000 (10:05 +0100)
committerDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Wed, 25 Feb 2015 09:05:46 +0000 (10:05 +0100)
cluster_tools/mergeStatFile.py

index a1cd573cdb21e5f23488992c401d029a74d6b17a..ab5028954ce62feeab9953d0baf3af6dc0eb4f49 100755 (executable)
@@ -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)
-