fix: Bug in Corr.projected fixed which appears in connection with arrays

of None as Corr entry.
This commit is contained in:
Fabian Joswig 2022-06-13 11:59:05 +01:00
parent 0d86df2506
commit 5359a30b97
2 changed files with 11 additions and 2 deletions

View file

@ -246,6 +246,15 @@ def test_matrix_corr():
corr_mat.Eigenvalue(2, state=0)
def test_projected_none():
a = pe.pseudo_Obs(1.0, 0.1, 'a')
l = np.asarray([[a, a], [a, a]])
n = np.asarray([[None, None], [None, None]])
x = [l, n]
matr = pe.Corr(x)
matr.projected(np.asarray([1.0, 0.0]))
def test_GEVP_warnings():
corr_aa = _gen_corr(1)
corr_ab = 0.5 * corr_aa