From ca4f7977fc696f361017acba85fe065bdb67fd40 Mon Sep 17 00:00:00 2001 From: fjosw Date: Wed, 3 May 2023 14:31:55 +0000 Subject: [PATCH] Documentation updated --- docs/pyerrors/obs.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pyerrors/obs.html b/docs/pyerrors/obs.html index 6a9dd037..47c84625 100644 --- a/docs/pyerrors/obs.html +++ b/docs/pyerrors/obs.html @@ -1185,7 +1185,7 @@ 978 979def _format_uncertainty(value, dvalue, significance=2): 980 """Creates a string of a value and its error in paranthesis notation, e.g., 13.02(45)""" - 981 if dvalue == 0.0: + 981 if dvalue == 0.0 or (not np.isfinite(dvalue)): 982 return str(value) 983 if not isinstance(significance, int): 984 raise TypeError("significance needs to be an integer.")