mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
fix: complex correlator fix extended to array valued complex
correlators.
This commit is contained in:
parent
f39a70c5a8
commit
6343968404
2 changed files with 8 additions and 6 deletions
|
@ -536,7 +536,9 @@ def test_prune():
|
|||
|
||||
def test_complex_Corr():
|
||||
o1 = pe.pseudo_Obs(1.0, 0.1, "test")
|
||||
cobs = pe.CObs(o1, o1)
|
||||
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)])
|
||||
assert np.all([ccorr.imag[i] == -ccorr.real[i] for i in range(ccorr.T)])
|
||||
print(ccorr)
|
||||
mcorr = pe.Corr(np.array([[ccorr, ccorr], [ccorr, ccorr]]))
|
||||
assert np.all([mcorr.imag[i] == -mcorr.real[i] for i in range(mcorr.T)])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue