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

fix: __array__ = 'sorted_map' should only be allowed on RecordArrays, not lists. #1959

Conversation

jpivarski
Copy link
Member

@jpivarski jpivarski commented Dec 6, 2022

Oops: #1939 constrains __array__ = 'sorted_map' to be only allowed on list-types, when it is only allowed on record-types. There's no implementation of sorted map behaviors yet, but Uproot produces them in anticipation.

This PR is necessary to fix Uproot. See the failure here (raw logs):

https://github.com/scikit-hep/uproot5/actions/runs/3625653080/jobs/6113923488


📚 The documentation for this PR will be available at https://awkward-array.readthedocs.io/en/jpivarski-__array__-sorted_map-only-allowed-on-recordarray-not-lists/ once Read the Docs has finished building 🔨

@jpivarski jpivarski self-assigned this Dec 6, 2022
@jpivarski jpivarski added the pr-next-release Required for the next release label Dec 6, 2022
@jpivarski
Copy link
Member Author

Although I don't know why that Uproot test didn't fail for not having #1919. scikit-hep/uproot5#788 is waiting to fix that, but I would have thought it would trigger in that test.

@codecov
Copy link

codecov bot commented Dec 6, 2022

Codecov Report

Merging #1959 (4810eb6) into main (150d0f9) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

Additional details and impacted files
Impacted Files Coverage Δ
src/awkward/contents/content.py 75.90% <50.00%> (-0.08%) ⬇️

@agoose77 agoose77 merged commit 245f768 into main Dec 6, 2022
@agoose77 agoose77 deleted the jpivarski/__array__-sorted_map-only-allowed-on-RecordArray-not-lists branch December 6, 2022 09:35
@jpivarski jpivarski removed the pr-next-release Required for the next release label Feb 15, 2023
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