From 33b5d701147304b6aaf796da29c31ff59db4f6a0 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Wed, 1 Dec 2021 14:58:00 +0000 Subject: [PATCH] fix: bug in Obs.is_zero in connection with covobs fixed --- pyerrors/obs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyerrors/obs.py b/pyerrors/obs.py index e925c51b..35c97454 100644 --- a/pyerrors/obs.py +++ b/pyerrors/obs.py @@ -459,7 +459,7 @@ class Obs: atol : float Absolute tolerance (for details see numpy documentation). """ - return (np.isclose(0.0, self.value, rtol, atol) and all(np.allclose(0.0, delta, rtol, atol) for delta in self.deltas.values()) and all(np.allclose(0.0, delta.grad, rtol, atol) for delta in self.covobs.values())) + return np.isclose(0.0, self.value, rtol, atol) and all(np.allclose(0.0, delta, rtol, atol) for delta in self.deltas.values()) and all(np.allclose(0.0, delta.errsq(), rtol, atol) for delta in self.covobs.values()) def plot_tauint(self, save=None): """Plot integrated autocorrelation time for each ensemble.