From f68a5d044fa7c5cb15b820a837513c35fd6f3a93 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Tue, 20 Dec 2022 17:37:37 +0100 Subject: [PATCH] tests: test for construction of complex correlator object added. --- tests/correlators_test.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/correlators_test.py b/tests/correlators_test.py index 49332254..222f8030 100644 --- a/tests/correlators_test.py +++ b/tests/correlators_test.py @@ -532,3 +532,10 @@ def test_prune(): with pytest.raises(Exception): corr_mat.prune(3) corr_mat.prune(4) + + +def test_complex_Corr(): + o1 = pe.pseudo_Obs(1.0, 0.1, "test") + cobs = pe.CObs(o1, o1) + ccorr = pe.Corr([cobs, cobs, cobs]) + assert np.all([ccorr.imag[i] == ccorr.real[i] for i in range(ccorr.T)])