mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-16 15:20:24 +01:00
fix: bug in error propagation for correlated fits fixed.
This commit is contained in:
parent
c9e0c6e208
commit
155c329921
1 changed files with 4 additions and 1 deletions
|
@ -559,7 +559,10 @@ def _standard_fit(x, y, func, silent=False, **kwargs):
|
||||||
|
|
||||||
fitp = fit_result.x
|
fitp = fit_result.x
|
||||||
try:
|
try:
|
||||||
hess = jacobian(jacobian(chisqfunc))(fitp)
|
if kwargs.get('correlated_fit') is True:
|
||||||
|
hess = jacobian(jacobian(chisqfunc_corr))(fitp)
|
||||||
|
else:
|
||||||
|
hess = jacobian(jacobian(chisqfunc))(fitp)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
raise Exception("It is required to use autograd.numpy instead of numpy within fit functions, see the documentation for details.") from None
|
raise Exception("It is required to use autograd.numpy instead of numpy within fit functions, see the documentation for details.") from None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue