Merge pull request #89 from fjosw/fix/precision_is_zero

Precision of is_zero
This commit is contained in:
Fabian Joswig 2022-03-22 10:24:08 +00:00 committed by GitHub
commit 6d8cbe2545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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