mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 03:53:41 +02:00
Merge branch 'develop' into documentation
This commit is contained in:
commit
9e47e26665
3 changed files with 40 additions and 4 deletions
|
@ -325,10 +325,20 @@ def test_corr_vector_operations():
|
|||
assert np.all([o == 0 for o in ((my_corr * my_vec) / my_vec) - my_corr])
|
||||
assert np.all([o == 0 for o in ((my_corr / my_vec) * my_vec) - my_corr])
|
||||
|
||||
def _gen_corr(val):
|
||||
|
||||
def test_spaghetti_plot():
|
||||
corr = _gen_corr(12, 50)
|
||||
corr += pe.pseudo_Obs(0.0, 0.1, 'another_ensemble')
|
||||
corr += pe.cov_Obs(0.0, 0.01 ** 2, 'covobs')
|
||||
|
||||
corr.spaghetti_plot(True)
|
||||
corr.spaghetti_plot(False)
|
||||
|
||||
|
||||
def _gen_corr(val, samples=2000):
|
||||
corr_content = []
|
||||
for t in range(16):
|
||||
corr_content.append(pe.pseudo_Obs(val, 0.1, 't', 2000))
|
||||
corr_content.append(pe.pseudo_Obs(val, 0.1, 't', samples))
|
||||
|
||||
return pe.correlators.Corr(corr_content)
|
||||
|
||||
|
|
|
@ -142,7 +142,6 @@ def test_overloading_vectorization():
|
|||
|
||||
def test_gamma_method_standard_data():
|
||||
for data in [np.tile([1, -1], 1000),
|
||||
np.random.rand(100001),
|
||||
np.zeros(1195),
|
||||
np.sin(np.sqrt(2) * np.pi * np.arange(1812))]:
|
||||
test_obs = pe.Obs([data], ['t'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue