mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
Merge pull request #89 from fjosw/fix/precision_is_zero
Precision of is_zero
This commit is contained in:
commit
6d8cbe2545
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
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue