From 57f266a559bcfd6266c5efbe8866713d7fff7e50 Mon Sep 17 00:00:00 2001 From: Michael Wolloch Date: Fri, 17 May 2024 11:07:37 +0200 Subject: [PATCH] Remove commented out old version of getting STM plane Co-authored-by: Martin Schlipf --- src/py4vasp/calculation/_partial_charge.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/py4vasp/calculation/_partial_charge.py b/src/py4vasp/calculation/_partial_charge.py index 7cbc1a69..6841a879 100644 --- a/src/py4vasp/calculation/_partial_charge.py +++ b/src/py4vasp/calculation/_partial_charge.py @@ -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",