mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
fix: check for correlator None entries refactored and added to all
elementary operations. Tests added.
This commit is contained in:
parent
5359a30b97
commit
ed50240d29
2 changed files with 30 additions and 20 deletions
|
@ -246,7 +246,7 @@ def test_matrix_corr():
|
|||
corr_mat.Eigenvalue(2, state=0)
|
||||
|
||||
|
||||
def test_projected_none():
|
||||
def test_corr_none_entries():
|
||||
a = pe.pseudo_Obs(1.0, 0.1, 'a')
|
||||
l = np.asarray([[a, a], [a, a]])
|
||||
n = np.asarray([[None, None], [None, None]])
|
||||
|
@ -254,6 +254,12 @@ def test_projected_none():
|
|||
matr = pe.Corr(x)
|
||||
matr.projected(np.asarray([1.0, 0.0]))
|
||||
|
||||
matr * 2 - 2 * matr
|
||||
matr * matr + matr ** 2 / matr
|
||||
|
||||
for func in [np.sqrt, np.log, np.exp, np.sin, np.cos, np.tan, np.sinh, np.cosh, np.tanh]:
|
||||
func(matr)
|
||||
|
||||
|
||||
def test_GEVP_warnings():
|
||||
corr_aa = _gen_corr(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue