mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
Adapted test_total_least_squares
This commit is contained in:
parent
522a1f152a
commit
99d8ee5dd5
1 changed files with 3 additions and 1 deletions
|
@ -132,7 +132,9 @@ def test_total_least_squares():
|
|||
assert math.isclose(pe.covariance(beta[0], beta[1]), output.cov_beta[0, 1], rel_tol=2.5e-1)
|
||||
|
||||
out = pe.total_least_squares(ox, oy, func, const_par=[beta[1]])
|
||||
assert((out.fit_parameters[0] - beta[0]).is_zero())
|
||||
|
||||
diff = out.fit_parameters[0] - beta[0]
|
||||
assert(diff / beta[0] < 1e-3 * beta[0].dvalue)
|
||||
assert((out.fit_parameters[1] - beta[1]).is_zero())
|
||||
pe.Obs.e_tag_global = 0
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue