From 055b431003aa09e9ea6608ec4daecd094d028ebb Mon Sep 17 00:00:00 2001 From: chris-simpson Date: Wed, 8 Jan 2025 13:38:51 -1000 Subject: [PATCH] second slight code change to cope with different split of args/kwargs between inspect.signature and inspect.getfullargspec --- gempy/library/matching.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gempy/library/matching.py b/gempy/library/matching.py index 36fe70416..b81f03db1 100644 --- a/gempy/library/matching.py +++ b/gempy/library/matching.py @@ -385,6 +385,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