From d9f4e5b453c1c4953ab04a567121105ebfee7a64 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Tue, 2 Nov 2021 11:23:11 +0000 Subject: [PATCH] T_symmetry test added --- tests/correlators_test.py | 5 +++++ tests/linalg_test.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/correlators_test.py b/tests/correlators_test.py index 63f1a755..181c7b07 100644 --- a/tests/correlators_test.py +++ b/tests/correlators_test.py @@ -54,6 +54,11 @@ def test_m_eff(): my_corr.m_eff('cosh') my_corr.m_eff('sinh') +def test_T_symmetry(): + my_corr = pe.correlators.Corr([pe.pseudo_Obs(10, 0.1, 't'), pe.pseudo_Obs(0, 0.05, 't')]) + with pytest.warns(RuntimeWarning): + T_symmetric = my_corr.T_symmetry(my_corr) + def test_utility(): corr_content = [] for t in range(8): diff --git a/tests/linalg_test.py b/tests/linalg_test.py index 6e3455f6..41a391a3 100644 --- a/tests/linalg_test.py +++ b/tests/linalg_test.py @@ -64,7 +64,7 @@ def test_matrix_inverse(): def test_complex_matrix_inverse(): - dimension = 6 + dimension = 4 base_matrix = np.empty((dimension, dimension), dtype=object) matrix = np.empty((dimension, dimension), dtype=complex) for (n, m), entry in np.ndenumerate(base_matrix):