Skip to content
Snippets Groups Projects
Commit 5b08ea07 authored by patavirt's avatar patavirt
Browse files

core: fix sign in terminal GF

parent 0b80e25e
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,7 @@ class Core: ...@@ -56,6 +56,7 @@ class Core:
for i, j in zip(*np.where(m)): for i, j in zip(*np.where(m)):
M = self._Omega[i, j] + 1j * self._omega * tau3 M = self._Omega[i, j] + 1j * self._omega * tau3
Q = signm(-1j * M) Q = signm(-1j * M)
Q = Q * np.sign(self._omega)
g = np.linalg.solve(np.eye(2) + Q[:2, :2], Q[:2, 2:]) g = np.linalg.solve(np.eye(2) + Q[:2, :2], Q[:2, 2:])
gt = np.linalg.solve(np.eye(2) - Q[2:, 2:], Q[2:, :2]) gt = np.linalg.solve(np.eye(2) - Q[2:, 2:], Q[2:, :2])
Phi[i, j, 0] = g Phi[i, j, 0] = g
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment