mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
test: test for padded correlators added
This commit is contained in:
parent
bc220fceaf
commit
1c65109227
1 changed files with 8 additions and 0 deletions
|
@ -99,6 +99,14 @@ def test_plateau():
|
||||||
with pytest.raises(Exception):
|
with pytest.raises(Exception):
|
||||||
my_corr.plateau()
|
my_corr.plateau()
|
||||||
|
|
||||||
|
|
||||||
|
def test_padded_correlator():
|
||||||
|
my_list = [pe.Obs([np.random.normal(1.0, 0.1, 100)], ['ens1']) for o in range(8)]
|
||||||
|
my_corr = pe.Corr(my_list, padding_front=7, padding_back=3)
|
||||||
|
my_corr.reweighted
|
||||||
|
[o for o in my_corr]
|
||||||
|
|
||||||
|
|
||||||
def test_utility():
|
def test_utility():
|
||||||
corr_content = []
|
corr_content = []
|
||||||
for t in range(8):
|
for t in range(8):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue