Skip to content

Commit

Permalink
Remove commented out old version of getting STM plane
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Schlipf <[email protected]>
  • Loading branch information
MichaelWolloch and martin-schlipf authored May 17, 2024
1 parent 4789c31 commit 57f266a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/py4vasp/calculation/_partial_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,6 @@ def _smooth_stm_data(self, data):

def _get_stm_plane(self):
"""Return lattice plane spanned by a and b vectors"""
# lv = self._structure.lattice_vectors()
# _raise_error_if_vacuum_not_along_z(self._structure)
# l0 = np.linalg.norm(lv[0]) / np.linalg.norm(lv[0,:2]) * lv[0,:2]
# l1 = np.linalg.norm(lv[1]) / np.linalg.norm(lv[1,:2]) * lv[1,:2]
# from py4vasp._util.slicing import Plane
# return Plane(vectors=np.vstack((l0, l1)),
# cell=lv,
# cut="c",
# )
return plane(
cell=self._structure.lattice_vectors(),
cut="c",
Expand Down

0 comments on commit 57f266a

Please sign in to comment.