Repository navigation
Restore LMLSQFitter __call__ signature - #17164
Conversation
|
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.
|
pllim
left a comment
There was a problem hiding this comment.
If it works for you, then LGTM. I'll let you decide if my approval is enough or you need others to review as well. Thanks!
|
Am I right to think that the |
| @@ -1674,7 +1687,18 @@ def __call__(self, model, *args, **kwargs): | |||
| AstropyDeprecationWarning, | |||
There was a problem hiding this comment.
Hm, I don't see it on main. Or am confused and somehow looking at the wrong file.
There was a problem hiding this comment.
See here:
astropy/astropy/modeling/fitting.py
Line 1724 in 11182c3
|
After this PR, most tests are failing on I get the same problem locally. No idea why the tests on the PR here seemed absolutely fine! |
| @fitter_unit_support | ||
| def __call__( | ||
| self, | ||
| model, | ||
| x, | ||
| y, | ||
| z=None, | ||
| weights=None, | ||
| maxiter=DEFAULT_MAXITER, | ||
| acc=DEFAULT_ACC, | ||
| epsilon=DEFAULT_EPS, | ||
| estimate_jacobian=False, | ||
| filter_non_finite=False, | ||
| ): |
There was a problem hiding this comment.
I suspect this had not been rebased to #17033 and thus the explicit signature is now missing the inplace kwarg that was added there.
Description
This PR restores the
LMLSQFitter.__call__signature that was changed in #16994.