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-siesta
Commits
815ac839
Commit
815ac839
authored
Jul 12, 2016
by
Ask Hjorth Larsen
Browse files
add script to easily invoke the tests
parent
a073c234
Changes
2
Hide whitespace changes
Inline
Side-by-side
parser/parser-siesta/main.py
View file @
815ac839
...
...
@@ -13,7 +13,6 @@ from nomadcore.unit_conversion.unit_conversion \
from
util
import
floating
,
integer
arg
=
sys
.
argv
[
1
]
metaInfoPath
=
os
.
path
.
normpath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
"../../../../nomad-meta-info/meta_info/nomad_meta_info/siesta.nomadmetainfo.json"
))
metaInfoEnv
,
warnings
=
loadJsonFile
(
filePath
=
metaInfoPath
,
dependencyLoader
=
None
,
...
...
@@ -338,9 +337,14 @@ infoFileDescription = SM(
])
])
def
main
(
**
kwargs
):
mainFunction
(
mainFileDescription
=
infoFileDescription
,
metaInfoEnv
=
metaInfoEnv
,
parserInfo
=
parser_info
,
cachingLevelForMetaName
=
{},
superContext
=
context
,
**
kwargs
)
if
__name__
==
'__main__'
:
main
()
mainFunction
(
mainFileDescription
=
infoFileDescription
,
metaInfoEnv
=
metaInfoEnv
,
parserInfo
=
parser_info
,
cachingLevelForMetaName
=
{},
superContext
=
context
)
parser/parser-siesta/pycheck.py
0 → 100755
View file @
815ac839
from
__future__
import
print_function
import
os
from
main
import
main
testdir
=
'../../test/examples'
dirnames
=
[
'H2O'
,
'h2o_relax'
,
'Al_slab'
,
'Al_uc'
,
'Fe'
,
'MgO'
]
for
dirname
in
dirnames
:
fname
=
os
.
path
.
join
(
testdir
,
dirname
,
'out'
)
with
open
(
'out.pycheck.%s.txt'
%
dirname
,
'w'
)
as
outfd
:
main
(
mainFile
=
fname
,
outF
=
outfd
)
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