diff --git a/docs/pyerrors/correlators.html b/docs/pyerrors/correlators.html
index 2f9ea60b..eb1f622b 100644
--- a/docs/pyerrors/correlators.html
+++ b/docs/pyerrors/correlators.html
@@ -262,14 +262,16 @@
def __getitem__(self, idx):
"""Return the content of timeslice idx"""
- if len(self.content[idx]) == 1:
+ if self.content[idx] is None:
+ return None
+ elif len(self.content[idx]) == 1:
return self.content[idx][0]
else:
return self.content[idx]
@property
def reweighted(self):
- bool_array = np.array([list(map(lambda x: x.reweighted, o)) for o in self.content])
+ bool_array = np.array([list(map(lambda x: x.reweighted, o)) for o in list(filter(None.__ne__, self.content))])
if np.all(bool_array == 1):
return True
elif np.all(bool_array == 0):
@@ -1070,14 +1072,16 @@
def __getitem__(self, idx):
"""Return the content of timeslice idx"""
- if len(self.content[idx]) == 1:
+ if self.content[idx] is None:
+ return None
+ elif len(self.content[idx]) == 1:
return self.content[idx][0]
else:
return self.content[idx]
@property
def reweighted(self):
- bool_array = np.array([list(map(lambda x: x.reweighted, o)) for o in self.content])
+ bool_array = np.array([list(map(lambda x: x.reweighted, o)) for o in list(filter(None.__ne__, self.content))])
if np.all(bool_array == 1):
return True
elif np.all(bool_array == 0):