From bf83ab29de20f7a47e1d3b72f3df20b90adf2a1f Mon Sep 17 00:00:00 2001 From: fjosw Date: Wed, 23 Feb 2022 17:01:54 +0000 Subject: [PATCH] Documentation updated --- docs/pyerrors/obs.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/pyerrors/obs.html b/docs/pyerrors/obs.html index 7f53fbe4..3c521f63 100644 --- a/docs/pyerrors/obs.html +++ b/docs/pyerrors/obs.html @@ -1245,7 +1245,7 @@ deltas : list List of fluctuations idx : list - List or range of configs on which the deltas are defined. + List or range of configs on which the deltas are defined, has to be sorted in ascending order. shape : int Number of configs in idx. """ @@ -1259,7 +1259,7 @@ def _merge_idx(idl): - """Returns the union of all lists in idl + """Returns the union of all lists in idl as sorted list Parameters ---------- @@ -1282,7 +1282,7 @@ idstep = min([idx.step for idx in idl]) return range(idstart, idstop, idstep) - return list(set().union(*idl)) + return sorted(set().union(*idl)) def _expand_deltas_for_merge(deltas, idx, shape, new_idx): @@ -1296,11 +1296,11 @@ List of fluctuations idx : list List or range of configs on which the deltas are defined. - Has to be a subset of new_idx. + Has to be a subset of new_idx and has to be sorted in ascending order. shape : list Number of configs in idx. new_idx : list - List of configs that defines the new range. + List of configs that defines the new range, has to be sorted in ascending order. """ if type(idx) is range and type(new_idx) is range: