Skip to content

Commit

Permalink
fixed bug sampling negative hybridisation elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Joost Aretz committed Jul 24, 2024
1 parent 590886a commit b4e90b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/w2dyn_cthyb/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def solve(self, **params_kw):
s1 = spins[0]
s2 = spins[1]

all_zeros = not np.any(ftau[:, b1, s1, b2, s2] > 1e-5)
all_zeros = not np.any(np.abs(ftau[:, b1, s1, b2, s2]) > 1e-5)

if not all_zeros:
components = np.append(components, comp_ind)
Expand Down

0 comments on commit b4e90b8

Please sign in to comment.