From b4e90b819ef901f85c4bf26b503cc24adbf0bcdf Mon Sep 17 00:00:00 2001 From: Joost Aretz Date: Wed, 24 Jul 2024 17:13:45 +0200 Subject: [PATCH] fixed bug sampling negative hybridisation elements --- python/w2dyn_cthyb/solver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/w2dyn_cthyb/solver.py b/python/w2dyn_cthyb/solver.py index 1c39704..7614d7f 100644 --- a/python/w2dyn_cthyb/solver.py +++ b/python/w2dyn_cthyb/solver.py @@ -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)