Hidden _set_cov and _set_grad, modified test for equality of covs

This commit is contained in:
Simon Kuberski 2021-12-08 08:55:40 +01:00
parent 7c5465d828
commit a5cf0270d3
2 changed files with 5 additions and 5 deletions

View file

@ -1069,7 +1069,7 @@ def derived_observable(func, data, array_mode=False, **kwargs):
for o in raveled_data:
for name in o.cov_names:
if name in allcov:
if not np.allclose(allcov[name], o.covobs[name].cov, rtol=1e-14, atol=1e-14):
if not np.allclose(allcov[name], o.covobs[name].cov):
raise Exception('Inconsistent covariance matrices for %s!' % (name))
else:
allcov[name] = o.covobs[name].cov