fix: DeprecationWarning in Corr.reweighted fixed

This commit is contained in:
Fabian Joswig 2022-01-07 12:08:27 +01:00
parent cd0f38c77d
commit 88572c06a8

View file

@ -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):