diff --git a/docs/pyerrors/obs.html b/docs/pyerrors/obs.html
index bcc41d77..c47487a7 100644
--- a/docs/pyerrors/obs.html
+++ b/docs/pyerrors/obs.html
@@ -1525,6 +1525,9 @@
def _reduce_deltas(deltas, idx_old, idx_new):
"""Extract deltas defined on idx_old on all configs of idx_new.
+ Assumes, that idx_old and idx_new are correctly defined idl, i.e., they
+ are ordered in an ascending order.
+
Parameters
----------
deltas : list
@@ -1544,8 +1547,6 @@
ret = np.zeros(shape)
oldpos = 0
for i in range(shape):
- if oldpos == idx_old[i]:
- raise Exception('idx_old and idx_new do not match!')
pos = -1
for j in range(oldpos, len(idx_old)):
if idx_old[j] == idx_new[i]:
@@ -1553,7 +1554,8 @@
break
if pos < 0:
raise Exception('Error in _reduce_deltas: Config %d not in idx_old' % (idx_new[i]))
- ret[i] = deltas[j]
+ ret[i] = deltas[pos]
+ oldpos = pos
return np.array(ret)