Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

BUG: adjust copy semantics for compatibility with numpy 2 #1145

Merged

Conversation

neutrinoceros
Copy link
Contributor

See https://numpy.org/doc/stable/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword

This fixes a test failure that I saw locally, though oddly enough it doesn't seem to have shown in CI yet
Reprod:

pytest specutils/tests/test_utils.py::test_quantity_model

@neutrinoceros neutrinoceros force-pushed the bug/compat/numpy2_copy_semantics branch from 71e0b02 to 4937088 Compare June 19, 2024 10:10
@rosteen
Copy link
Contributor

rosteen commented Jul 23, 2024

It looks like all test failures are unrelated, I think we can get this in for future-proofing. it is odd that this didn't show up in the CI and only locally, thanks for noticing and fixing it!

@rosteen rosteen merged commit 92c9609 into astropy:main Jul 23, 2024
8 of 11 checks passed
@neutrinoceros neutrinoceros deleted the bug/compat/numpy2_copy_semantics branch July 23, 2024 15:40
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants