mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
tests: test for construction of complex correlator object added.
This commit is contained in:
parent
060c23571e
commit
f68a5d044f
1 changed files with 7 additions and 0 deletions
|
@ -532,3 +532,10 @@ def test_prune():
|
||||||
with pytest.raises(Exception):
|
with pytest.raises(Exception):
|
||||||
corr_mat.prune(3)
|
corr_mat.prune(3)
|
||||||
corr_mat.prune(4)
|
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)])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue