Skip to content
Snippets Groups Projects
Commit 39ba3392 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Remove parsig tree debug output.

parent 725217b4
Branches master
No related tags found
No related merge requests found
...@@ -302,26 +302,28 @@ class SimpleMatcher(object): ...@@ -302,26 +302,28 @@ class SimpleMatcher(object):
purposes. Shows the different sections and metanames in a tree-like purposes. Shows the different sections and metanames in a tree-like
hierarchy. hierarchy.
""" """
metanames = self.directMetaNames() pass
sections = self.sections # TODO we never do this in nomad-fairdi
# metanames = self.directMetaNames()
# First print sections # sections = self.sections
if sections:
logger.info((level) * " " + "SECTIONS: " + str(sections)) # # First print sections
# if sections:
# Then print metanames. Indentation increases if a section has also been opened. # logger.info((level) * " " + "SECTIONS: " + str(sections))
metaname_level = level
if sections and metanames: # # Then print metanames. Indentation increases if a section has also been opened.
metaname_level += 1 # metaname_level = level
if metanames: # if sections and metanames:
logger.info(metaname_level * " " + "METAINFOS: " + str(metanames)) # metaname_level += 1
# if metanames:
# Recursion # logger.info(metaname_level * " " + "METAINFOS: " + str(metanames))
new_level = level
if sections or metanames: # # Recursion
new_level += 1 # new_level = level
for child in self.subMatchers: # if sections or metanames:
child.printParsingTree(new_level) # new_level += 1
# for child in self.subMatchers:
# child.printParsingTree(new_level)
def closingParen(regex, i, nparen): def closingParen(regex, i, nparen):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment