mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 12:03:42 +02: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
|
@property
|
||||||
def reweighted(self):
|
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):
|
if np.all(bool_array == 1):
|
||||||
return True
|
return True
|
||||||
elif np.all(bool_array == 0):
|
elif np.all(bool_array == 0):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue