Commit f4692e7d authored by Stephen Thompson's avatar Stephen Thompson

Issue #3 set jacobian method, so we pass regression test

parent a15db005
......@@ -22,6 +22,8 @@ def fit_sphere_least_squares(x_values, y_values, z_values, initial_parameters,
"""
return least_squares(_calculate_residual_sphere, initial_parameters,
bounds=bounds,
method='trf',
jac='3-point',
args=(x_values, y_values, z_values))
def _calculate_residual_sphere(parameters, x_values, y_values, z_values):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment