Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parser-elk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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-elk
Commits
47683a29
Commit
47683a29
authored
8 years ago
by
Pardini, Lorenzo (lopa)
Browse files
Options
Downloads
Patches
Plain Diff
added brillouin zone metadata
parent
c475148e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
parser/parser-elk/parser_elk.py
+9
-42
9 additions, 42 deletions
parser/parser-elk/parser_elk.py
with
9 additions
and
42 deletions
parser/parser-elk/parser_elk.py
+
9
−
42
View file @
47683a29
from
builtins
import
object
from
builtins
import
object
import
setup_paths
import
setup_paths
import
numpy
as
np
from
nomadcore.simple_parser
import
mainFunction
,
AncillaryParser
,
CachingLevel
from
nomadcore.simple_parser
import
mainFunction
,
AncillaryParser
,
CachingLevel
from
nomadcore.simple_parser
import
SimpleMatcher
as
SM
from
nomadcore.simple_parser
import
SimpleMatcher
as
SM
from
nomadcore.local_meta_info
import
loadJsonFile
,
InfoKindEl
from
nomadcore.local_meta_info
import
loadJsonFile
,
InfoKindEl
...
@@ -28,55 +29,21 @@ mainFileDescription = \
...
@@ -28,55 +29,21 @@ mainFileDescription = \
weak
=
True
,
weak
=
True
,
subMatchers
=
[
subMatchers
=
[
SM
(
name
=
"
header
"
,
SM
(
name
=
"
header
"
,
startReStr
=
r
"
\s*\|\s*Elk\s*(?P<program_version>[-a-zA-Z0-9]+)\s*started\s*=
"
,
startReStr
=
r
"
\s*\|\s*Elk
version
\s*(?P<program_version>[-a-zA-Z0-9]+)\s*started\s*=
"
,
fixedStartValues
=
{
'
program_name
'
:
'
elk
'
,
'
program_basis_set_type
'
:
'
(L)APW+lo
'
},
fixedStartValues
=
{
'
program_name
'
:
'
elk
'
,
'
program_basis_set_type
'
:
'
(L)APW+lo
'
},
sections
=
[
"
section_run
"
,
"
section_method
"
],
sections
=
[
"
section_run
"
,
"
section_method
"
],
subMatchers
=
[
subMatchers
=
[
SM
(
name
=
'
input
'
,
SM
(
name
=
'
input
'
,
startReStr
=
r
"
\|\sStarting initialization
"
,
startReStr
=
r
"
\|\sGroundi\-state run starting from atomic densities\s\|\s
"
,
endReStr
=
r
"
\|\sEnding initialization
"
,
endReStr
=
r
"
\|\sDensity and potential initialised from atomic data\s
"
,
sections
=
[
'
section_system
'
]
sections
=
[
'
section_system
'
],
),
subMatchers
=
[
SM
(
r
"
\s*Unit cell volume\s*:\s*(?P<x_elk_unit_cell_volume__bohr3>[-0-9.]+)
"
),
SM
(
r
"
\s*Brillouin zone volume\s*:\s*(?P<x_elk_brillouin_zone_volume__bohr_3>[-0-9.]+)
"
)
]
)
])
])
])
])
#mainFileDescription = SM(
# name = 'root',
# weak = True,
# startReStr = "",
# subMatchers = [
# SM(name = 'newRun',
# startReStr = r"\s*:LABEL[0-9]+: using WIEN2k_(?:[0-9.]+) \(Release (?:[0-9/.]+)\) in ",
# repeats = True,
# required = True,
# forwardMatch = True,
# sections = ['section_run', 'section_method', 'section_system', 'section_single_configuration_calculation'],
# subMatchers = [
# SM(
# name = 'header',
# startReStr = r"\s*:LABEL[0-9]+: using WIEN2k_(?P<x_wien2k_version>[0-9.]+) \(Release (?P<x_wien2k_release_date>[0-9/.]+)\) in ",
# sections=["x_wien2k_header"],
# fixedStartValues={'program_name': 'WIEN2k', 'program_basis_set_type': '(L)APW+lo' }
# ), SM(
# name = "scf iteration",
# startReStr = r"\s*:ITE(?P<x_wien2k_iteration_number>[0-9]+):\s*[0-9]*. ITERATION",
# sections=["section_scf_iteration"],
# repeats = True,
# subMatchers=[
# SM(r":NATO :\s*(?P<x_wien2k_number_of_independent_atoms>[0-9]+)INDEPENDENT AND\s*(?P<x_wien2k_total_atoms>[0-9]+)\s*TOTAL ATOMS IN UNITCELL"),
# SM(r"\s*SUBSTANCE: (?P<x_wien2k_system_name>.*)"),
# SM(r":POT\s*:\s*POTENTIAL OPTION\s*(?P<x_wien2k_potential_option>[0-9]+)"),
# SM(r":VOL\s*:\s*UNIT CELL VOLUME\s*=\s*(?P<x_wien2k_unit_cell_volume__angstrom3>[0-9.]+)")
# ]
# )
# ]
# )
# ])
# loading metadata from nomad-meta-info/meta_info/nomad_meta_info/fhi_aims.nomadmetainfo.json
parserInfo
=
{
parserInfo
=
{
"
name
"
:
"
Elk
"
"
name
"
:
"
Elk
"
}
}
...
...
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