Closed hanshammel1337 closed 9 years ago
I'm not able to reproduce this error on my system running Python 2.7.9, NumPy 1.9.1, and SciPy 0.15.0 but I believe the following is causing the issue:
You changed the bounds of the first parameter (1.0) to be very close to the unbounded optimized value (1.016) which results in an infinity or NaN being generated when calculating the jacobian around the solution (cov_x). The try/except block at line 359 catches a LinAlgError on my system so that cov_x is returned as None but does not catch a ValueError. SciPy's leastsq function now also catches ValueError as of 272927b. I'll update leastsqbound to catch this also.
if i simple change one bound from the test file from
bounds = [(0.0, 2.0), (-10.0, 10.0)]
tobounds = [(1.0, 2.0), (-10.0, 10.0)]
it raises warning/error listed below:
any ideas what is the problem here?