Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat!: __array__ is no longer allowed on NumpyArray and EmptyArray #2997

Conversation

jpivarski
Copy link
Member

@jpivarski jpivarski commented Feb 1, 2024

As per https://github.com/scikit-hep/awkward/wiki#api-breaking-changes-after-20 for 2.6.0, we now longer allow __array__ to be called on NumpyArray and EmptyArray.

@agoose77
Copy link
Collaborator

agoose77 commented Feb 1, 2024

Nice! This is failing in CI because numba 0.59 has been released, bringing in a feature that we couldn't test yet (the test throws NotImplementedError). I'll take a look.

@jpivarski
Copy link
Member Author

#2998 isn't in main yet, but when it is, merging main into here will fix the tests.

@jpivarski
Copy link
Member Author

Thanks!

@jpivarski jpivarski enabled auto-merge (squash) February 2, 2024 18:20
Copy link

codecov bot commented Feb 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7f2f219) 81.89% compared to head (574b69e) 81.90%.

Additional details and impacted files
Files Coverage Δ
src/awkward/contents/emptyarray.py 75.62% <ø> (+0.49%) ⬆️
src/awkward/contents/numpyarray.py 91.50% <ø> (+0.31%) ⬆️

@jpivarski jpivarski merged commit 681163b into main Feb 2, 2024
38 of 39 checks passed
@jpivarski jpivarski deleted the jpivarski/__array__-is-no-longer-allowed-on-NumpyArray-and-EmptyArray branch February 2, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants