Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parser-quantum-espresso
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nomad-lab
parser-quantum-espresso
Commits
ff4cc112
Commit
ff4cc112
authored
8 years ago
by
Henning Glawe
Browse files
Options
Downloads
Patches
Plain Diff
annotateFile as argument to constructor
parent
4a2265c0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
parser/parser-quantum-espresso/FortranNamelistParser.py
+3
-3
3 additions, 3 deletions
parser/parser-quantum-espresso/FortranNamelistParser.py
with
3 additions
and
3 deletions
parser/parser-quantum-espresso/FortranNamelistParser.py
+
3
−
3
View file @
ff4cc112
...
...
@@ -105,11 +105,11 @@ cRE_end_newline = re.compile(r'(.*?)(\n*)$')
class
FortranNamelistParser
(
object
):
"""
Parser for Fortran 90 Namelists
"""
def
__init__
(
self
,
file_path
):
def
__init__
(
self
,
file_path
,
annotateFile
=
None
):
self
.
input_tree
=
{}
self
.
file_path
=
file_path
self
.
state
=
self
.
state_root
self
.
__annotateFile
=
sys
.
stdout
self
.
__annotateFile
=
annotateFile
self
.
__nl_group
=
None
self
.
__target
=
None
self
.
__subscript
=
None
...
...
@@ -451,5 +451,5 @@ class FortranNamelistParser(object):
pass
if
__name__
==
"
__main__
"
:
parser
=
FortranNamelistParser
(
sys
.
argv
[
1
])
parser
=
FortranNamelistParser
(
sys
.
argv
[
1
]
,
annotateFile
=
sys
.
stdout
)
parser
.
parse
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment