pahfit icon indicating copy to clipboard operation
pahfit copied to clipboard

scipy interpolate error

Open alexmaragko opened this issue 3 years ago • 0 comments

I came across a few cases where the code would stop before fitting, producing the following error:

ValueError: A value in x_new is below the interpolation range.

which is due to scipy interploate interp1d used in the estimate_init method.

The obvious way to override and proceed with these cases is to set --no_starting_estimate, but you can't use estimate_init in this way.

Moreover, if we don't want PAHFIT to hang, there is a proper way to deal with this and this is by setting bounds_error=False as discussed here https://github.com/scipy/scipy/issues/12707.

alexmaragko avatar Sep 01 '21 15:09 alexmaragko