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: