fix: Increased the precision at which two observables are considered to

be equal.
This commit is contained in:
Fabian Joswig 2022-03-21 16:45:37 +00:00
parent e21e2d1904
commit 2a02020a71

View file

@ -443,7 +443,7 @@ class Obs:
"""
return self.is_zero() or np.abs(self.value) <= sigma * self._dvalue
def is_zero(self, rtol=1.e-5, atol=1.e-8):
def is_zero(self, rtol=1e-14, atol=1e-10):
"""Checks whether the observable is zero within a given tolerance.
Parameters