mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
fix: DeprecationWarning in Corr.reweighted fixed
This commit is contained in:
parent
cd0f38c77d
commit
88572c06a8
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue