]> Creatis software - clitk.git/blobdiff - cluster_tools/mergeStatFile.py
Debug RTStruct conversion with empty struc
[clitk.git] / 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)
-