Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
parser-cp2k
Commits
c5d5ae16
Commit
c5d5ae16
authored
Feb 04, 2016
by
Lauri Himanen
Browse files
Comment.
parent
7a8aece2
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser/parser-cp2k/cp2kparser/scalainterface.py
View file @
c5d5ae16
...
...
@@ -7,7 +7,7 @@ from cp2kparser.parsing.versions.cp2k262.outputparser import CP2KOutputParser
from
nomadcore.local_meta_info
import
loadJsonFile
,
InfoKindEl
from
nomadcore.simple_parser
import
mainFunction
# This is what
gets run when
the scala layer
calls for
th
is
parser. Currently
# This is what
should be called by
the scala layer
to run
th
e
parser. Currently
# only the outputparser is used because the scala layer doesn't support
# auxiliary files. Also the version identification is skipped and the structure
# used in CP2K 2.6.2 is assumed.
...
...
@@ -19,7 +19,7 @@ if __name__ == "__main__":
outputparser
=
CP2KOutputParser
(
None
,
None
)
# Setup the metainfos
metaInfoPath
=
os
.
path
.
normpath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
"../../../../nomad-meta-info/meta_info/nomad_meta_info/{}"
.
format
(
cp2kparser
.
get_metainfo_filename
())))
metaInfoPath
=
os
.
path
.
normpath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
"../../../../
../
nomad-meta-info/meta_info/nomad_meta_info/{}"
.
format
(
cp2kparser
.
get_metainfo_filename
())))
metaInfoEnv
,
warnings
=
loadJsonFile
(
filePath
=
metaInfoPath
,
dependencyLoader
=
None
,
extraArgsHandling
=
InfoKindEl
.
ADD_EXTRA_ARGS
,
uri
=
None
)
# Parser info
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment