mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-16 12:33:41 +02:00
New method is_zero
This commit is contained in:
parent
573d4992c9
commit
10b228d434
3 changed files with 6 additions and 3 deletions
|
@ -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]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue