Fix _NoneLinearLSQFitter having a required extra arg#16982
Merged
astrofrog merged 3 commits intoastropy:mainfrom Sep 12, 2024
Merged
Fix _NoneLinearLSQFitter having a required extra arg#16982astrofrog merged 3 commits intoastropy:mainfrom
astrofrog merged 3 commits intoastropy:mainfrom
Conversation
We now use the kwargs feature of scipy.optmize.least_squares to pass the context through, but this means that the old (and should be deprecated) LevMarLSQFitter doesn't get the performance boost.
Contributor
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
astrofrog
reviewed
Sep 10, 2024
1 task
Member
|
How much sacrifice are we talking about here? @mcara , are you satisfied with this fix? |
Member
|
For once, the benchmark results might be related. |
Contributor
Member
|
I think we're waiting for Tom's comment at #16982 (comment) to be resolved. |
astrofrog
requested changes
Sep 12, 2024
astrofrog
reviewed
Sep 12, 2024
6c823d4 to
47842c8
Compare
Member
Author
|
|
Contributor
Contributor
|
Contributor
|
I fixed the issue on my side so again this is not of importance for me (I think...). |
Member
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This should address #16673 (comment) but I had to sacrifice the performance of
LevMarLSQFitterto the gods of shitty code and backwards compatibility.If this exercise has taught me anything, it's that
fitting.pyneeds a major (breaking) refactor 🔥.closes #16979