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
nomad-FAIR
Commits
795d726b
Commit
795d726b
authored
Mar 04, 2019
by
Daniel Speckhard
Browse files
Fixed test_parser_issue.
parent
e82738ab
Pipeline
#44552
failed with stages
in 22 minutes and 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/parsing/__init__.py
View file @
795d726b
...
...
@@ -288,10 +288,14 @@ parsers = [
LegacyParser
(
name
=
'parsers/octopus'
,
parser_class_name
=
'octopusparser.OctopusParserWrapper'
,
mainfile_contents_re
=
(
r
'\*{32} Grid \*{32}Simulation Box:'
)
mainfile_contents_re
=
(
r
'\|0\) ~ \(0\) \|'
)
# We decided to use the octopus eyes instead of
# r'\*{32} Grid \*{32}Simulation Box:' since it was so far down in the file.
)
]
""" Instanciation and constructor based config of all parsers. """
parser_dict
=
{
parser
.
name
:
parser
for
parser
in
parsers
}
# type: ignore
...
...
tests/test_parsing.py
View file @
795d726b
...
...
@@ -46,8 +46,8 @@ parser_examples = [
(
'parsers/orca'
,
'tests/data/parsers/orca/orca3dot2706823.out'
),
(
'parsers/castep'
,
'tests/data/parsers/castep/BC2N-Pmm2-Raman.castep'
),
(
'parsers/dl-poly'
,
'tests/data/parsers/dl-poly/OUTPUT'
),
(
'parsers/lib-atoms'
,
'tests/data/parsers/lib-atoms/gp.xml'
)
,
(
'parsers/octopus'
,
'tests/data/parsers/octopus/stdout.txt'
)
,
#
('parsers/lib-atoms', 'tests/data/parsers/lib-atoms/gp.xml')
#
('parsers/octopus', 'tests/data/parsers/octopus/stdout.txt')
]
faulty_unknown_one_d_matid_example
=
[
...
...
Write
Preview
Supports
Markdown
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