Skip to content

Commit

Permalink
Deleting lattice_vectors_reciprocal from AtomicCell
Browse files Browse the repository at this point in the history
  • Loading branch information
JosePizarro3 committed Feb 20, 2024
1 parent 39d133d commit f69c517
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions simulationdataschema/model_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,18 +270,6 @@ class Cell(GeometricSpace):
""",
)

# TODO move to KMesh
lattice_vectors_reciprocal = Quantity(
type=np.float64,
shape=[3, 3],
unit="1/meter",
description="""
Reciprocal lattice vectors of the simulated cell, in Cartesian coordinates and
including the $2 pi$ pre-factor. The first index runs over each lattice vector. The
second index runs over the $x, y, z$ Cartesian coordinates.
""",
)

periodic_boundary_conditions = Quantity(
type=bool,
shape=[3],
Expand Down Expand Up @@ -377,10 +365,6 @@ def to_ase_atoms(self, logger: BoundLogger) -> Optional[ase.Atoms]:
# Lattice vectors
if self.lattice_vectors is not None:
ase_atoms.set_cell(self.lattice_vectors.to("angstrom").magnitude)
if self.lattice_vectors_reciprocal is None:
self.lattice_vectors_reciprocal = (
2 * np.pi * ase_atoms.get_reciprocal_cell() / ureg.angstrom
)
else:
logger.info("Could not find `AtomicCell.lattice_vectors`.")

Expand Down

0 comments on commit f69c517

Please sign in to comment.