Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nomad-FAIR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
nomad-lab
nomad-FAIR
Commits
97c1e303
Commit
97c1e303
authored
4 years ago
by
Markus Scheidgen
Browse files
Options
Downloads
Patches
Plain Diff
Fixed list of code_names.
parent
fafdb25c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!188
V0.9.0
Pipeline
#82611
passed
4 years ago
Stage: build
Stage: test
Stage: deploy
Stage: release
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dependencies/parsers/lammps
+1
-1
1 addition, 1 deletion
dependencies/parsers/lammps
nomad/parsing/parsers.py
+10
-7
10 additions, 7 deletions
nomad/parsing/parsers.py
with
11 additions
and
8 deletions
lammps
@
7ed44cab
Compare
e1f873f1
...
7ed44cab
Subproject commit
e1f873f104d4ce64815636251c8e30971a9fcbda
Subproject commit
7ed44cab4410099208f5e399bfa4c1dc2e9c29fe
This diff is collapsed.
Click to expand it.
nomad/parsing/parsers.py
+
10
−
7
View file @
97c1e303
...
@@ -478,10 +478,13 @@ parser_dict['parser/octopus'] = parser_dict['parsers/octopus']
...
@@ -478,10 +478,13 @@ parser_dict['parser/octopus'] = parser_dict['parsers/octopus']
parser_dict
[
'
parser/onetep
'
]
=
parser_dict
[
'
parsers/onetep
'
]
parser_dict
[
'
parser/onetep
'
]
=
parser_dict
[
'
parsers/onetep
'
]
# register code names as possible statistic value to the dft datamodel
# register code names as possible statistic value to the dft datamodel
code_names
=
sorted
(
code_names
=
[]
set
([
for
parser
in
parsers
:
getattr
(
parser
,
'
code_name
'
)
if
parser
.
domain
==
'
dft
'
and
\
for
parser
in
parsers
getattr
(
parser
,
'
code_name
'
,
None
)
is
not
None
and
\
if
parser
.
domain
==
'
dft
'
and
getattr
(
parser
,
'
code_name
'
,
None
)
is
not
None
and
getattr
(
parser
,
'
code_name
'
)
!=
'
currupted mainfile
'
]),
getattr
(
parser
,
'
code_name
'
)
!=
'
currupted mainfile
'
and
\
key
=
lambda
code_name
:
code_name
.
lower
())
getattr
(
parser
,
'
code_name
'
)
!=
'
Template
'
:
datamodel
.
DFTMetadata
.
code_name
.
a_search
.
statistic_values
=
code_names
+
[
config
.
services
.
unavailable_value
,
config
.
services
.
not_processed_value
]
code_names
.
append
(
getattr
(
parser
,
'
code_name
'
))
code_names
=
sorted
(
set
(
code_names
),
key
=
lambda
code_name
:
code_name
.
lower
())
datamodel
.
DFTMetadata
.
code_name
.
a_search
.
statistic_values
=
code_names
+
[
config
.
services
.
unavailable_value
,
config
.
services
.
not_processed_value
]
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