API: align default value for copy arguments with numpy at runtime (warn about copy=False)#16174
API: align default value for copy arguments with numpy at runtime (warn about copy=False)#16174neutrinoceros wants to merge 3 commits into
Conversation
34ac398 to
037e5fe
Compare
|
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 |
037e5fe to
6533511
Compare
08e6a8c to
9a08830
Compare
|
Turns out, this path puts pressure on yet more parts of the code base to switch from I'll still take a minute to try and fix it completely, just to see exactly how bad it is, but I need to iterate locally, and right now, I'm having issues building against the latest numpy dev locally. |
9a08830 to
a620f6d
Compare
|
It took me longer than I care to admit but I fixed almost everything locally... which results in a patch that's several times the size of #16166 and has the undesirable effect of effectively prohibiting My personal preference is now strongly towards #16181 |
a620f6d to
e99ed8c
Compare
|
There seem to be a consensus for going with #16181, so even if it's not merged yet, I think we can close this one now. |
Description
This is based off #16166 and #16170 and adds a minor but crucial API change to align the default value of our
copyarguments with whatever numpy API is installed. See #16167 for the broader context.Passing
copy=Falseis still supported but raises a warning.Alternative: #16181
This is meant to be a small self-contained PR that we can ask downstream stakeholders to test from, but this will only make sense once #16166 and #16170 are merged. At that point, I'll call for feedback on the dev mailing list.