Skip to content

Commit

Permalink
Add 'message' and 'status' result values to returned model_copy object
Browse files Browse the repository at this point in the history
  • Loading branch information
DBerke committed Mar 7, 2023
1 parent 9e0e7cf commit dab373b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gempy/library/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,9 @@ def __call__(self, model, in_coords, ref_coords, in_weights=None,
fitted_params = result['x']
fitter_to_model_params(model_copy, fitted_params)
self.statistic = result['fun']
self.niter = result['nit']
self.niter = result['nit'] # Number of iterations
self.message = result['message'] # Message about why it terminated
self.status = result['status'] # Numeric return status (0 for 'good')
return model_copy

@staticmethod
Expand Down

0 comments on commit dab373b

Please sign in to comment.