From eacec6bfdc8c8ab52326c925c85a5fcdf2d628c5 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Mon, 18 Oct 2021 09:34:10 +0100 Subject: [PATCH] Obs.__float__ now always returns a python float --- pyerrors/pyerrors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyerrors/pyerrors.py b/pyerrors/pyerrors.py index 6039b412..2e14d2e0 100644 --- a/pyerrors/pyerrors.py +++ b/pyerrors/pyerrors.py @@ -476,7 +476,7 @@ class Obs: pickle.dump(self, fb) def __float__(self): - return self.value + return float(self.value) def __repr__(self): return 'Obs[' + str(self) + ']'