Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Update _base_error_solver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mpewsey committed Jun 4, 2019
1 parent 03f6e90 commit 59b7794
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion error_solver/solvers/_base_error_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ def solve(self, values, errors, const={}, combo=None, check=True, stdev=False):
n, m = len(val), len(err)

xk = np.array([errors[k] for k in err], dtype='float').reshape(-1, 1)
jac = np.abs(self.jacobian(values, errors, combo))
jac = self.jacobian(values, errors, combo)
ju, jk = jac[:,:n], jac[:,n:n+m]
jui = np.abs(np.linalg.inv(ju))
ju, jk = np.abs(ju), np.abs(jk)

if const:
ck = np.array([const.get(k, 0) for k in err], dtype='float').reshape(-1, 1)
Expand Down

0 comments on commit 59b7794

Please sign in to comment.