mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
Improved prior fit (#161)
* refactor: merged combined fit and prior fit without breaking the routine. Fitting with priors does not work yet. * refactor: correlated fits without priors work now. * refactor: prior error propagation and dof fixed. * refactor: old prior fit implementation moved to tests. * refactor: moved _extract_val_and_dval out of least_squares. * refactor: comment removed. * tests: additional tests and exceptions added. * tests: test for constrained prior fit added. * docs: least_squares docstring extended. * fix: linting errors fixed. * feat: additional if cause for fits without priors added to achieve original speed. * tests: test_constrained_and_prior_fit fixed. * fix: fix array cast of least_squares dict mode. * tests: test for lists in dict fit added. * fix: additional asarray added in resplot. Co-authored-by: Simon Kuberski <simon.kuberski@uni-muenster.de>
This commit is contained in:
parent
82cd2f11ea
commit
839d9214ed
3 changed files with 549 additions and 364 deletions
|
@ -1085,7 +1085,7 @@ def test_non_overlapping_missing_cnfgs():
|
|||
average = (even + odd) / 2
|
||||
average.gm(S=0)
|
||||
assert np.isclose(full.value, average.value)
|
||||
assert np.isclose(full.dvalue, average.dvalue, rtol=0.01)
|
||||
assert np.isclose(full.dvalue, average.dvalue, rtol=0.02)
|
||||
|
||||
|
||||
def test_non_overlapping_operations():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue