Commit a402a33b authored by Alvin Noe Ladines's avatar Alvin Noe Ladines
Browse files

Fix issue #500

parent e086c4b7
Pipeline #94644 passed with stages
in 22 minutes and 55 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:
return
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