From 7b3dcefbf19166b19b687b078ea46de0a098507c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 27 Sep 2022 07:20:52 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- masci_tools/tools/greensfunction.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/masci_tools/tools/greensfunction.py b/masci_tools/tools/greensfunction.py index d4c5113ac..0588352e4 100644 --- a/masci_tools/tools/greensfunction.py +++ b/masci_tools/tools/greensfunction.py @@ -678,7 +678,7 @@ def average_spindiagonal(self) -> None: self._data[name] = data for name in self._data.keys(): - for m in range(2*self.lmax+1): + for m in range(2 * self.lmax + 1): self._data[name][:, m, m, 0] = (self._data[name][:, m, m, 0] + self._data[name][:, m, m, min(1, self.nspins - 1)]) / 2 if self.nspins > 1: @@ -692,7 +692,6 @@ def average_spindiagonal(self) -> None: data = np.einsum('ij,xjk...,km->xim...', rot_real_space.T.conj(), data, rotp_real_space) self._data[name] = data - def to_global_frame(self) -> None: """ Rotate the Green's function into the global real space and spin space frame