mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
fix: Corr.fit now explicitly checks that the provided fit range is a two
element list.
This commit is contained in:
parent
ab8e3ce549
commit
6bfeff4f27
2 changed files with 11 additions and 1 deletions
|
@ -135,6 +135,11 @@ def test_fit_correlator():
|
|||
assert fit_res[0] == my_corr[0]
|
||||
assert fit_res[1] == my_corr[1] - my_corr[0]
|
||||
|
||||
with pytest.raises(Exception):
|
||||
my_corr.fit(f, "from 0 to 3")
|
||||
with pytest.raises(Exception):
|
||||
my_corr.fit(f, [0, 2, 3])
|
||||
|
||||
|
||||
def test_plateau():
|
||||
my_corr = pe.correlators.Corr([pe.pseudo_Obs(1.01324, 0.05, 't'), pe.pseudo_Obs(1.042345, 0.008, 't')])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue