fix: calls to gamma_method added to T_symmetric and antisymmetric

methods of the Corr class to restore original functionality
This commit is contained in:
Fabian Joswig 2022-02-15 17:02:03 +00:00
parent a8d9846fbb
commit 815970e780

View file

@ -218,7 +218,9 @@ class Corr:
if self.T % 2 != 0:
raise Exception("Can not symmetrize odd T")
if not all([o.is_zero_within_error(3) for o in self.content[0]]):
test = 1 * self
test.gamma_method()
if not all([o.is_zero_within_error(3) for o in test.content[0]]):
warnings.warn("Correlator does not seem to be anti-symmetric around x0=0.", RuntimeWarning)
newcontent = [self.content[0]]
@ -455,7 +457,9 @@ class Corr:
T_partner = parity * partner.reverse()
t_slices = []
for x0, t_slice in enumerate((self - T_partner).content):
test = (self - T_partner)
test.gamma_method()
for x0, t_slice in enumerate(test.content):
if t_slice is not None:
if not t_slice[0].is_zero_within_error(5):
t_slices.append(x0)