Merge branch 'develop' into documentation

This commit is contained in:
fjosw 2021-12-01 15:00:09 +00:00
commit a6abdb87b1
2 changed files with 7 additions and 1 deletions

View file

@ -581,3 +581,9 @@ def test_covobs():
do = cl[0] * cl[1]
assert(np.array_equal(do.covobs['rAP'].grad, np.transpose([pi[1], pi[0]]).reshape(2, 1)))
def test_covobs_overloading():
covobs = pe.cov_Obs([0.5, 0.5], np.array([[0.02, 0.02], [0.02, 0.02]]), 'Zfactor')
assert (covobs[0] / covobs[1]) == 1
assert (covobs[0] - covobs[1]) == 0