Skip to content

Commit

Permalink
second slight code change to cope with different split of args/kwargs…
Browse files Browse the repository at this point in the history
… between inspect.signature and inspect.getfullargspec
  • Loading branch information
chris-simpson committed Jan 10, 2025
1 parent bba665b commit fb13f38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gempy/library/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ def __call__(self, model, in_coords, ref_coords, in_weights=None,
else:
raise ValueError("Don't understand argument {}".format(arg_names[1]))

# Just in case as a result of scipy change
if 'bounds' in kwarg_names:
kwargs['bounds'] = tuple(model_copy.bounds[p] for p in model_copy.param_names)
if 'args' in arg_names or 'args' in kwarg_names:
kwargs['args'] = farg

Expand Down

0 comments on commit fb13f38

Please sign in to comment.