From 2a02020a71a7cf578449f7e9e9f80b1a1f05b671 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Mon, 21 Mar 2022 16:45:37 +0000 Subject: [PATCH] fix: Increased the precision at which two observables are considered to be equal. --- pyerrors/obs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyerrors/obs.py b/pyerrors/obs.py index 2439bc03..0b46537c 100644 --- a/pyerrors/obs.py +++ b/pyerrors/obs.py @@ -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