Repository navigation
Add an inplace=False/True keyword argument to __call__ on fitters to allow in-place modification of models - #17033
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.
|
|
👋 Thank you for your draft pull request! Do you know that you can use |
d948107 to
e60f89a
Compare
mhvk
left a comment
There was a problem hiding this comment.
This seems like the nicer approach! I guess one small suggestion (but might as well wait for proper review), is to add a * to ensure the new argument is keyword-only.
|
I'm not a |
Done! |
|
This looks good. A couple of comments
|
|
Also I wonder if a note should be added to the |
|
@nden - I've now:
|
|
pre-commit.ci autofix |
|
@nden - this should be ready, the CI failures are unrelated. |
…l does not get copied and the parameters get changed inplace
…s on 'inplace=', and explicitly add option to FittingWithOutlierRemoval
3cd94c6 to
214d09d
Compare
|
Rebased |
This then uses this keyword argument to speed up the fitting in
parallel_fit_dasksince we can modify the parameters in-place without any risk.