diff --git a/gempy/library/matching.py b/gempy/library/matching.py index a979b86d7..784cf629c 100644 --- a/gempy/library/matching.py +++ b/gempy/library/matching.py @@ -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