Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
a1a5478c
Commit
a1a5478c
authored
Mar 01, 2021
by
Markus Scheidgen
Browse files
Merge branch 'new-vasp-parser-fixes' into 'reprocess'
Fix issue
#500
(new vasp parser bugs) See merge request
!267
parents
bb4a34fb
a402a33b
Pipeline
#94670
passed with stages
in 25 minutes and 50 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
vasp
@
ab933a73
Compare
f93c548d
...
ab933a73
Subproject commit
f93c548d77deef59c38e914731ac816e6eda0ff0
Subproject commit
ab933a73649ef7be873206a7fdb6aa0ef9886043
nomad/normalizing/encyclopedia/material.py
View file @
a1a5478c
...
@@ -569,6 +569,8 @@ class Material1DNormalizer(MaterialNormalizer):
...
@@ -569,6 +569,8 @@ class Material1DNormalizer(MaterialNormalizer):
def
lattice_parameters
(
self
,
ideal
:
IdealizedStructure
,
std_atoms
:
Atoms
,
periodicity
:
NDArray
)
->
None
:
def
lattice_parameters
(
self
,
ideal
:
IdealizedStructure
,
std_atoms
:
Atoms
,
periodicity
:
NDArray
)
->
None
:
# 1D systems only have one lattice parameter: length in periodic dimension
# 1D systems only have one lattice parameter: length in periodic dimension
periodic_indices
=
np
.
where
(
np
.
array
(
periodicity
)
==
True
)[
0
]
# noqa: E712
periodic_indices
=
np
.
where
(
np
.
array
(
periodicity
)
==
True
)[
0
]
# noqa: E712
if
len
(
periodic_indices
)
==
0
:
return
cell
=
std_atoms
.
get_cell
()
cell
=
std_atoms
.
get_cell
()
a
=
np
.
linalg
.
norm
(
cell
[
periodic_indices
[
0
],
:])
*
1e-10
a
=
np
.
linalg
.
norm
(
cell
[
periodic_indices
[
0
],
:])
*
1e-10
params
=
ideal
.
m_create
(
LatticeParameters
)
params
=
ideal
.
m_create
(
LatticeParameters
)
...
...
Write
Preview
Markdown
is supported
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