mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
fix: Increased the precision at which two observables are considered to
be equal.
This commit is contained in:
parent
e21e2d1904
commit
2a02020a71
1 changed files with 1 additions and 1 deletions
|
@ -443,7 +443,7 @@ class Obs:
|
||||||
"""
|
"""
|
||||||
return self.is_zero() or np.abs(self.value) <= sigma * self._dvalue
|
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.
|
"""Checks whether the observable is zero within a given tolerance.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue