From 88572c06a87933f14e831be8d7fd7ef8942d9e38 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 7 Jan 2022 12:08:27 +0100 Subject: [PATCH] fix: DeprecationWarning in Corr.reweighted fixed --- pyerrors/correlators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyerrors/correlators.py b/pyerrors/correlators.py index 6759a49c..7f318976 100644 --- a/pyerrors/correlators.py +++ b/pyerrors/correlators.py @@ -74,7 +74,7 @@ class Corr: @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):