From 410d7618a0f343d60b465216c0e777a6b39847d3 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Mon, 16 May 2022 12:07:36 +0100 Subject: [PATCH] tests: GEVP tests updated to new syntax. --- tests/correlators_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/correlators_test.py b/tests/correlators_test.py index 23c99db6..4d6e9b61 100644 --- a/tests/correlators_test.py +++ b/tests/correlators_test.py @@ -231,7 +231,7 @@ def test_matrix_corr(): corr_mat = pe.Corr(np.array([[corr_aa, corr_ab], [corr_ab, corr_aa]])) corr_mat.item(0, 0) - vecs = corr_mat.GEVP(0, 1, sorted_list=None) + vecs = corr_mat.GEVP(0, 1, sort=None) corr_0 = corr_mat.projected(vecs[0]) corr_1 = corr_mat.projected(vecs[0]) @@ -239,13 +239,13 @@ def test_matrix_corr(): assert np.all([o == 0 for o in corr_0 - corr_aa]) assert np.all([o == 0 for o in corr_1 - corr_aa]) - corr_mat.GEVP(0, sorted_list="Eigenvalue") - corr_mat.GEVP(0, 1, sorted_list="Eigenvector") + corr_mat.GEVP(0, sort="Eigenvalue") + corr_mat.GEVP(0, 1, sort="Eigenvector") corr_mat.matrix_symmetric() with pytest.warns(RuntimeWarning): - corr_mat.GEVP(0, 1, sorted_list="Eigenvalue") + corr_mat.GEVP(0, 1, sort="Eigenvalue") with pytest.raises(Exception): corr_mat.plottable()