Repository navigation
Deprecate check_broadcast - #15499
felipekhouri wants to merge 6 commits into
Conversation
Changed all check_broadcast occurrences to numpy.broadcast_shapes.
|
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.
|
|
|
||
|
|
||
| def check_broadcast(*shapes): | ||
| warn("check_broadcast() method has been deprecated. You should use numpy.broadcast_shapes() method instead.") |
There was a problem hiding this comment.
Please use the @deprecated decorator. You can see how we deprecate other things in this code base for example, or other similar PRs. Thanks!
There was a problem hiding this comment.
Done! Thank you for pointing that out!
There was a problem hiding this comment.
Welcome to Astropy 👋 and congratulations on your first pull request! 🎉
A project member will respond to you as soon as possible; in the meantime, please have a look over the Checklist for Contributed Code and make sure you've addressed as many of the questions there as possible.
If you feel that this pull request has not been responded to in a timely manner, please send a message directly to the development mailing list. If the issue is urgent or sensitive in nature (e.g., a security vulnerability) please send an e-mail directly to the private e-mail [email protected].
|
👋 Thank you for your draft pull request! Do you know that you can use |
pllim
left a comment
There was a problem hiding this comment.
Thanks! Still needs a change log.
Co-authored-by: P. L. Lim <[email protected]>
Co-authored-by: P. L. Lim <[email protected]>
|
Test failures are real. |
Co-authored-by: Leo Singer <[email protected]>
|
Hi humans 👋 - this pull request hasn't had any new commits for approximately 4 months. I plan to close this in 30 days if the pull request doesn't have any new commits by then. In lieu of a stalled pull request, please consider closing this and open an issue instead if a reminder is needed to revisit in the future. Maintainers may also choose to add keep-open label to keep this PR open but it is discouraged unless absolutely necessary. If this PR still needs to be reviewed, as an author, you can rebase it to reset the clock. If you believe I commented on this pull request incorrectly, please report this here. |
|
Superseded by #16346 |
Changed all check_broadcast occurrences to numpy.broadcast_shapes.
Description
This pull request is to address the deprecation of the check_broadcast method, changing it's occurrences to the new numpy.broadcast_shapes() method.
Fixes #15211