Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle failure of the unfaded EXP model in calc_Huntley2006() #550

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

mcol
Copy link
Contributor

@mcol mcol commented Dec 19, 2024

Fixes #549.

mcol added 2 commits December 19, 2024 09:44
When the fit of the unfaded EXP model fails, what we do depends on
fit.method:

- for fit.method = "EXP" this is irrecoverable, so stop with an error

- for fit.method = "GOK", as this model was only attempted to find a
  starting point, we can try again, this time using the simulated fit to
  set the starting point
@mcol
Copy link
Contributor Author

mcol commented Dec 19, 2024

I'm merging as this is strictly better than the current state: in the non-failure case, all is equal to before, but in the failure case we report an error (instead of an uncontained crash) for EXP, and we try again for GOK, potentially fitting more models than before.

@mcol mcol merged commit 924aea8 into master Dec 19, 2024
9 checks passed
@mcol mcol deleted the issue_549 branch December 19, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

singular gradient matrix in calc_Huntley() fitting unfaded EXP model
1 participant