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: touching of unions #2906

Merged
merged 8 commits into from
Dec 20, 2023
Merged

fix: touching of unions #2906

merged 8 commits into from
Dec 20, 2023

Conversation

agoose77
Copy link
Collaborator

Broadcasting of unions should also touch the contents! Fixes #2905

Copy link

codecov bot commented Dec 19, 2023

Codecov Report

Attention: 30 lines in your changes are missing coverage. Please review.

Comparison is base (1c52490) 81.98% compared to head (44bdb34) 81.98%.

Additional details and impacted files
Files Coverage Δ
src/awkward/contents/bytemaskedarray.py 89.75% <100.00%> (ø)
src/awkward/contents/content.py 74.81% <100.00%> (ø)
src/awkward/contents/emptyarray.py 75.12% <100.00%> (ø)
src/awkward/contents/indexedarray.py 80.95% <100.00%> (ø)
src/awkward/contents/indexedoptionarray.py 88.15% <100.00%> (ø)
src/awkward/contents/listarray.py 91.78% <100.00%> (ø)
src/awkward/contents/listoffsetarray.py 82.86% <100.00%> (ø)
src/awkward/contents/numpyarray.py 91.18% <100.00%> (ø)
src/awkward/contents/recordarray.py 85.19% <100.00%> (ø)
src/awkward/contents/regulararray.py 87.43% <100.00%> (ø)
... and 6 more

* ci: simplify test workflow

* ci: try exporting ForthError

* ci: use macos11 for now

* ci: rename General to Test

* ci: fix wheelhouse path

* ci: better parameterisation

* ci: try cross-platform

* ci: use glob action

* ci: fix ROOT workflow

* ci: fix defaults

* ci: fixes

* ci: fixes

* fix: remaining paths
.github/workflows/test.yml Outdated Show resolved Hide resolved
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.

That's right: since an element of a union can be any of its contents, and it doesn't get unpacked by the user explicitly specifying a field name, touching a union must touch all of its contents.

It looks like this PR also has the CI improvements. Maybe that's because it has been merged into this but not main yet.

@agoose77 agoose77 enabled auto-merge (squash) December 20, 2023 17:47
@agoose77 agoose77 merged commit a9c2e3b into main Dec 20, 2023
38 checks passed
@agoose77 agoose77 deleted the agoose77/fix-broadcast-touching branch December 20, 2023 18:01
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.

concatenation + combinations leaves placeholder arrays in data after form rehydration?
2 participants