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
80c36332
Commit
80c36332
authored
Jan 05, 2021
by
Markus Scheidgen
Browse files
Added missing immutable_id as filter quantity.
#450
parent
212f2494
Changes
1
Hide whitespace changes
Inline
Side-by-side
nomad/app_fastapi/optimade/filterparser.py
View file @
80c36332
...
...
@@ -46,6 +46,7 @@ def _get_transformer(nomad_properties, without_prefix):
if
'search'
in
q
.
m_annotations
}
quantities
[
'id'
]
=
Quantity
(
'id'
,
es_field
=
'calc_id'
)
quantities
[
'immutable_id'
]
=
Quantity
(
'immutable_id'
,
es_field
=
'calc_id'
)
quantities
[
'elements'
].
length_quantity
=
quantities
[
'nelements'
]
quantities
[
'elements'
].
has_only_quantity
=
Quantity
(
name
=
'only_atoms'
)
...
...
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