diff --git a/docs/pyerrors/covobs.html b/docs/pyerrors/covobs.html index 8c1ba353..2bffdfa4 100644 --- a/docs/pyerrors/covobs.html +++ b/docs/pyerrors/covobs.html @@ -129,7 +129,7 @@ 42 def errsq(self): 43 """ Return the variance (= square of the error) of the Covobs 44 """ - 45 return float(np.dot(np.transpose(self.grad), np.dot(self.cov, self.grad))) + 45 return np.dot(np.transpose(self.grad), np.dot(self.cov, self.grad)).item() 46 47 def _set_cov(self, cov): 48 """ Set the covariance matrix of the covobs @@ -245,7 +245,7 @@ 43 def errsq(self): 44 """ Return the variance (= square of the error) of the Covobs 45 """ - 46 return float(np.dot(np.transpose(self.grad), np.dot(self.cov, self.grad))) + 46 return np.dot(np.transpose(self.grad), np.dot(self.cov, self.grad)).item() 47 48 def _set_cov(self, cov): 49 """ Set the covariance matrix of the covobs @@ -393,7 +393,7 @@ Gradient of the Covobs wrt. the means belonging to cov.
43    def errsq(self):
 44        """ Return the variance (= square of the error) of the Covobs
 45        """
-46        return float(np.dot(np.transpose(self.grad), np.dot(self.cov, self.grad)))
+46        return np.dot(np.transpose(self.grad), np.dot(self.cov, self.grad)).item()
 
diff --git a/docs/pyerrors/input/dobs.html b/docs/pyerrors/input/dobs.html index d85a2e46..5ba8fbbd 100644 --- a/docs/pyerrors/input/dobs.html +++ b/docs/pyerrors/input/dobs.html @@ -946,7 +946,7 @@
850 for i in range(ncov): 851 for o in obsl: 852 if cname in o.covobs: -853 val = o.covobs[cname].grad[i] +853 val = o.covobs[cname].grad[i].item() 854 if val != 0: 855 ds += '%1.14e ' % (val) 856 else: @@ -1891,7 +1891,7 @@ Imported data and meta-data 851 for i in range(ncov): 852 for o in obsl: 853 if cname in o.covobs: -854 val = o.covobs[cname].grad[i] +854 val = o.covobs[cname].grad[i].item() 855 if val != 0: 856 ds += '%1.14e ' % (val) 857 else: diff --git a/docs/pyerrors/obs.html b/docs/pyerrors/obs.html index e301d6fe..3df3848b 100644 --- a/docs/pyerrors/obs.html +++ b/docs/pyerrors/obs.html @@ -1728,7 +1728,7 @@ 1521 if e_name not in obs2.cov_names: 1522 continue 1523 -1524 dvalue += float(np.dot(np.transpose(obs1.covobs[e_name].grad), np.dot(obs1.covobs[e_name].cov, obs2.covobs[e_name].grad))) +1524 dvalue += np.dot(np.transpose(obs1.covobs[e_name].grad), np.dot(obs1.covobs[e_name].cov, obs2.covobs[e_name].grad)).item() 1525 1526 return dvalue 1527