Replies: 1 comment 7 replies
-
The first problem is that NaN values are detected - you will need to make sure that that cannot happen. Also, this doesn't look like a complete example as you're not actually fitting any data. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Time Issue Code
Yes, I read the instructions and I am sure this is a GitHub Issue.
Description
When conducting a minimization with one residual term, the reduce function is sometimes not called. This can lead to the minimization converging to the wrong value or failing to converge entirely.
I believe this is due to
minimizer.penalty
checking if the array.size > 1 instead of >= 1.A Minimal, Complete, and Verifiable example
Fit report:
Not applicable, second fit crashes due to NaN value
Error message:
Version information
Python: 3.13.0 | packaged by Anaconda, Inc. | (main, Oct 7 2024, 21:21:52) [MSC v.1929 64 bit (AMD64)]
lmfit: 1.3.2, scipy: 1.14.1, numpy: 2.1.3,asteval: 1.0.5, uncertainties: 3.2.2
Link(s)
Relevant code block
Beta Was this translation helpful? Give feedback.
All reactions