mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
docstring and test added for Corr.reweight
This commit is contained in:
parent
3e60403a51
commit
b07f16fe1c
3 changed files with 27 additions and 5 deletions
|
@ -54,6 +54,12 @@ def test_m_eff():
|
|||
my_corr.m_eff('cosh')
|
||||
my_corr.m_eff('sinh')
|
||||
|
||||
def test_reweighting():
|
||||
my_corr = pe.correlators.Corr([pe.pseudo_Obs(10, 0.1, 't'), pe.pseudo_Obs(0, 0.05, 't')])
|
||||
assert my_corr.reweighted is False
|
||||
r_my_corr = my_corr.reweight(pe.pseudo_Obs(1, 0.1, 't'))
|
||||
assert r_my_corr.reweighted is True
|
||||
|
||||
def test_T_symmetry():
|
||||
my_corr = pe.correlators.Corr([pe.pseudo_Obs(10, 0.1, 't'), pe.pseudo_Obs(0, 0.05, 't')])
|
||||
with pytest.warns(RuntimeWarning):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue