Skip to content
Snippets Groups Projects
Commit 1b2ad42c authored by Robert Bossy's avatar Robert Bossy
Browse files

better reporting

parent 014e209b
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,9 @@ with open(ROOTS_FILE) as f:
LINE = re.compile('([1A-Z_ ]+) = (.*)')
SEEN = set()
def finish(rec):
if 'UI' not in rec:
return
......@@ -27,6 +30,7 @@ def finish(rec):
raise RuntimeError('no tree for ' + rec['UI'][0])
for mtree in rec['MN']:
print(mtree)
SEEN.add(rec['UI'][0])
current = collections.defaultdict(list)
......@@ -46,3 +50,8 @@ with open(MESH_FILE) as f:
value = m.group(2)
current[key].append(value)
finish(current)
for meshid, name in ROOTS.items():
if meshid not in SEEN:
sys.stderr.write('not seen: %s %s' % (meshid, name))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment