Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and janssenhenning committed Oct 13, 2022
1 parent 536b232 commit 7b3dcef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions masci_tools/tools/greensfunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 7b3dcef

Please sign in to comment.