From a801e434959a71b7361425622f925feb0826e0a6 Mon Sep 17 00:00:00 2001 From: fjosw Date: Wed, 19 Jan 2022 13:19:59 +0000 Subject: [PATCH] Documentation updated --- docs/pyerrors/misc.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/pyerrors/misc.html b/docs/pyerrors/misc.html index 91274d64..dfed6056 100644 --- a/docs/pyerrors/misc.html +++ b/docs/pyerrors/misc.html @@ -150,10 +150,11 @@ def _assert_equal_properties(ol, otype=Obs): - for o in ol: + if not isinstance(ol[0], otype): + raise Exception("Wrong data type in list.") + for o in ol[1:]: if not isinstance(o, otype): raise Exception("Wrong data type in list.") - for o in ol[1:]: if not ol[0].is_merged == o.is_merged: raise Exception("All Obs in list have to be defined on the same set of configs.") if not ol[0].reweighted == o.reweighted: