Repository navigation
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.
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
kbwestfall
left a comment
There was a problem hiding this comment.
This comes with the caveat that I've only briefly looked at the migration page. I can dig in more later.
Do we know when this deprecation will actually happen? The warning at the top of this page just says it will be done "in the next few releases".
Scipy usually removes deprecated APIs after just a couple minor releases. |
2ef79cb to
ec1d1fd
Compare
|
scipy might also change more API than this but we can only react to what we see in CI. |
ec1d1fd to
113b589
Compare
This comment was marked as outdated.
This comment was marked as outdated.
| if SCIPY_LT_2_0: | ||
| from scipy.sparse import coo_matrix, csr_matrix, find, isspmatrix_csr, triu | ||
| else: | ||
| from scipy.sparse import coo_array as coo_matrix |
There was a problem hiding this comment.
This indeed should be checked by the nddata folks, most importantly to check no multiplication is used as matrix multiplication, but FWIW, I would tend to flip this around, i.e., turn towards the future by replacing coo_matrix with coo_array in the code and above import coo_matrix as coo_array.
There was a problem hiding this comment.
I was trying to keep the diff to a minimal but I can flip the naming if y'all want. More code to review though.
There was a problem hiding this comment.
Yeah, I had the same thought as Marten. Up to you, but I'm happy to review the changes either way.
There was a problem hiding this comment.
OK sure, I can flip the naming
There was a problem hiding this comment.
OK I flipped names in the code, but I left the in-code comments and docstrings alone. Cannot really touch the docstring or intersphinx would break.
2c76831 to
b3bae88
Compare
|
Any chance someone can read the guide carefully soon (in a few days)? If not, I will temporarily ignore these warnings instead so we don't let even more failures creep into devdeps. Thanks! |
|
I'm paying close attention to devdeps and will be careful not to let new ones through. I can also take over this PR if you like. |
|
I am getting confused. Are we staying with this PR or moving to a new one by @neutrinoceros ? |
My understanding is that we're sticking with this one. The remaining items (as far as I understand) are:
|
b3bae88 to
a1640e8
Compare
|
I have rebased and removed |
This comment was marked as resolved.
This comment was marked as resolved.
Not yet. I'm not on vacation but still traveling so my capacity is limited these days (but I'm hoping to ramp it up in the next couple days). I can prioritize this on request, but until then it's only somewhat near the top of my list. |
a1640e8 to
da11fe8
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
da11fe8 to
9ff5b54
Compare
|
I'll try to get back to reviewing this before the weekend. Thanks for your patience ! |
but did not read conversion guide carefully Co-authored-by: Kyle Westfall <[email protected]>
but leave in-code comments and docstrings alone
because it is confusing to test API of another library as our own
22a0b0d to
006b68e
Compare
This comment was marked as resolved.
This comment was marked as resolved.
|
@neutrinoceros and @kbwestfall , devdeps is green here now. Are you able to re-review? Thanks! |
|
on it |
|
I finally had an hour to sit through this (sorry for the delay !) and I found a bunch of reasons why I think this simple approach isn't viable. I opened #20647 with my findings and proposed plan for action. As a consequence, I also advise closing this PR. |
|
Sure. Thanks! |
Description
This pull request would need someone familiar with the nddata code and also who has time to read https://docs.scipy.org/doc/scipy/reference/sparse.migration_to_sparray.html carefully to review.
Reviewers should ignore the one
ufuncfailure in devdeps that is being handled separately in #20132Fixes #20164