Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
parser-siesta
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nomad-lab
parser-siesta
Commits
0feea3bb
Commit
0feea3bb
authored
Mar 29, 2019
by
Markus Scheidgen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset the context to reuse over multiple runs.
parent
68b89cde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
siestaparser/main.py
siestaparser/main.py
+4
-1
No files found.
siestaparser/main.py
View file @
0feea3bb
...
...
@@ -130,9 +130,11 @@ H 1 # Species label, number of l-shells
"""
class
SiestaContext
(
object
):
def
__init__
(
self
):
self
.
reset
()
def
reset
(
self
):
self
.
fname
=
None
# The file that we are parsing
self
.
dirname
=
None
# Base directory of calculations
#self.parser = None # The parser object
...
...
@@ -671,6 +673,7 @@ class SiestaParser():
logging
.
info
(
'siesta parser started'
)
logging
.
getLogger
(
'nomadcore'
).
setLevel
(
logging
.
WARNING
)
backend
=
self
.
backend_factory
(
metaInfoEnv
)
context
.
reset
()
with
patch
.
object
(
sys
,
'argv'
,
[
'<exe>'
,
'--uri'
,
'nmd://uri'
,
mainfile
]):
mainFunction
(
mainFileDescription
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment