From 39ba3392d3f16d6d1e85a8363e34880530b380b0 Mon Sep 17 00:00:00 2001 From: Markus Scheidgen <markus.scheidgen@gmail.com> Date: Tue, 20 Apr 2021 15:24:01 +0200 Subject: [PATCH] Remove parsig tree debug output. --- common/python/nomadcore/simple_parser.py | 42 +++++++++++++----------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/common/python/nomadcore/simple_parser.py b/common/python/nomadcore/simple_parser.py index 9a4f196..47e44fd 100644 --- a/common/python/nomadcore/simple_parser.py +++ b/common/python/nomadcore/simple_parser.py @@ -302,26 +302,28 @@ class SimpleMatcher(object): purposes. Shows the different sections and metanames in a tree-like hierarchy. """ - metanames = self.directMetaNames() - sections = self.sections - - # First print sections - if sections: - logger.info((level) * " " + "SECTIONS: " + str(sections)) - - # Then print metanames. Indentation increases if a section has also been opened. - metaname_level = level - if sections and metanames: - metaname_level += 1 - if metanames: - logger.info(metaname_level * " " + "METAINFOS: " + str(metanames)) - - # Recursion - new_level = level - if sections or metanames: - new_level += 1 - for child in self.subMatchers: - child.printParsingTree(new_level) + pass + # TODO we never do this in nomad-fairdi + # metanames = self.directMetaNames() + # sections = self.sections + + # # First print sections + # if sections: + # logger.info((level) * " " + "SECTIONS: " + str(sections)) + + # # Then print metanames. Indentation increases if a section has also been opened. + # metaname_level = level + # if sections and metanames: + # metaname_level += 1 + # if metanames: + # logger.info(metaname_level * " " + "METAINFOS: " + str(metanames)) + + # # Recursion + # new_level = level + # if sections or metanames: + # new_level += 1 + # for child in self.subMatchers: + # child.printParsingTree(new_level) def closingParen(regex, i, nparen): -- GitLab