Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
python-common
Compare Revisions
725217b401a130b34260f29334e353c9548cd1fa...39ba3392d3f16d6d1e85a8363e34880530b380b0
Commits (1)
Remove parsig tree debug output.
· 39ba3392
Markus Scheidgen
authored
Apr 20, 2021
39ba3392
Hide whitespace changes
Inline
Side-by-side
common/python/nomadcore/simple_parser.py
View file @
39ba3392
...
...
@@ -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
):
...
...