New method is_zero

This commit is contained in:
Fabian Joswig 2021-10-17 12:28:59 +01:00
parent 573d4992c9
commit 10b228d434
3 changed files with 6 additions and 3 deletions

View file

@ -148,7 +148,7 @@ class Corr:
if self.T % 2 != 0:
raise Exception("Can not symmetrize odd T")
if not all([o.zero_within_error() for o in self.content[0]]):
if not all([o.is_zero_within_error() for o in self.content[0]]):
warnings.warn("Correlator does not seem to be anti-symmetric around x0=0.", RuntimeWarning)
newcontent = [self.content[0]]