Skip to content

Commit

Permalink
Merge pull request #7 from JoostAretz/3.3.x
Browse files Browse the repository at this point in the history
fixed bug sampling negative hybridisation elements
  • Loading branch information
HugoStrand authored Jul 26, 2024
2 parents 590886a + b4e90b8 commit 578f260
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 578f260

Please sign in to comment.