tests: test for construction of complex correlator object added.

This commit is contained in:
Fabian Joswig 2022-12-20 17:37:37 +01:00
parent 060c23571e
commit f68a5d044f
No known key found for this signature in database

View file

@ -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)])