Commit a1a5478c authored by Markus Scheidgen's avatar 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
Subproject commit f93c548d77deef59c38e914731ac816e6eda0ff0
Subproject commit ab933a73649ef7be873206a7fdb6aa0ef9886043
......@@ -569,6 +569,8 @@ class Material1DNormalizer(MaterialNormalizer):
def lattice_parameters(self, ideal: IdealizedStructure, std_atoms: Atoms, periodicity: NDArray) -> None:
# 1D systems only have one lattice parameter: length in periodic dimension
periodic_indices = np.where(np.array(periodicity) == True)[0] # noqa: E712
if len(periodic_indices) == 0:
cell = std_atoms.get_cell()
a = np.linalg.norm(cell[periodic_indices[0], :]) * 1e-10
params = ideal.m_create(LatticeParameters)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment