fix: bug in num_grad version of prior fit fixed.

This commit is contained in:
Fabian Joswig 2022-10-07 17:57:02 +01:00
parent e4d18fc8c8
commit ca4f83f5d1
No known key found for this signature in database

View file

@ -426,8 +426,6 @@ def _prior_fit(x, y, func, priors, silent=False, **kwargs):
raise Exception('The minimization procedure did not converge.')
hess = hessian(chisqfunc)(params)
if kwargs.get('num_grad') is True:
hess = hess[0]
hess_inv = np.linalg.pinv(hess)
def chisqfunc_compact(d):