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.__getitem__ should set attrs on result #2866

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Dec 1, 2023

The assignment of attrs to derived arrays was missing in highlevel. This fixes it, and adds more tests!

Copy link

codecov bot commented Dec 1, 2023

Codecov Report

Merging #2866 (8b3534b) into main (7f69758) will increase coverage by 0.01%.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

Additional details and impacted files
Files Coverage Δ
src/awkward/highlevel.py 76.67% <100.00%> (+0.54%) ⬆️

Copy link
Member

@jpivarski jpivarski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I can see how those were missed while you were focusing on ak.operations.*. Good catch!

Ready to merge.

@agoose77
Copy link
Collaborator Author

agoose77 commented Dec 1, 2023

Right, I can see how those were missed while you were focusing on ak.operations.*. Good catch!

Ready to merge.

That's exactly what happened!

@agoose77 agoose77 merged commit 123fa09 into main Dec 1, 2023
39 checks passed
@agoose77 agoose77 deleted the agoose77/fix-attrs-getitem branch December 1, 2023 21:09
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.

None yet

2 participants