mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
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:
parent
a8d9846fbb
commit
815970e780
1 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue