From 0665457da7785183bc9ae48f18513a17c170dbdc Mon Sep 17 00:00:00 2001 From: fjosw Date: Fri, 7 Jan 2022 11:09:52 +0000 Subject: [PATCH] Documentation updated --- docs/pyerrors/correlators.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pyerrors/correlators.html b/docs/pyerrors/correlators.html index f5e5b471..a673b94e 100644 --- a/docs/pyerrors/correlators.html +++ b/docs/pyerrors/correlators.html @@ -271,7 +271,7 @@ @property def reweighted(self): - bool_array = np.array([list(map(lambda x: x.reweighted, o)) for o in list(filter(None.__ne__, self.content))]) + bool_array = np.array([list(map(lambda x: x.reweighted, o)) for o in [x for x in self.content if x is not None]]) if np.all(bool_array == 1): return True elif np.all(bool_array == 0): @@ -1082,7 +1082,7 @@ @property def reweighted(self): - bool_array = np.array([list(map(lambda x: x.reweighted, o)) for o in list(filter(None.__ne__, self.content))]) + bool_array = np.array([list(map(lambda x: x.reweighted, o)) for o in [x for x in self.content if x is not None]]) if np.all(bool_array == 1): return True elif np.all(bool_array == 0):