mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
fix: the covariance functions now correctly check whether the
gamma_method was run. Tests added.
This commit is contained in:
parent
e213b37413
commit
352b93ee2c
3 changed files with 38 additions and 2 deletions
|
@ -37,6 +37,7 @@ def test_covobs():
|
|||
op.gamma_method()
|
||||
assert(np.isclose(oc.value, op.value, rtol=1e-14, atol=1e-14))
|
||||
|
||||
[o.gamma_method() for o in cl]
|
||||
assert(pe.covariance(cl[0], cl[1]) == cov[0][1])
|
||||
assert(pe.covariance2(cl[0], cl[1]) == cov[1][0])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue