mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-06-30 08:49:28 +02:00
fix: Conversion of an array with ndim > 0 to a scalar deprecation fixed. (#186)
This commit is contained in:
parent
34fe7f44fc
commit
ca70c7571b
3 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ class Covobs:
|
|||
def errsq(self):
|
||||
""" Return the variance (= square of the error) of the Covobs
|
||||
"""
|
||||
return float(np.dot(np.transpose(self.grad), np.dot(self.cov, self.grad)))
|
||||
return np.dot(np.transpose(self.grad), np.dot(self.cov, self.grad)).item()
|
||||
|
||||
def _set_cov(self, cov):
|
||||
""" Set the covariance matrix of the covobs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue