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: fix/harden broadcasting through tuples #2663

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Aug 21, 2023

At some point, refactoring work broke broadcasting of tuples whereby the broadcast proceeds through the fields.

This PR fixes that, and also prohibits broadcasting of tuples against records, even if the field names are considered compatible ("0" in a record has a mapping onto tuple slot 0). I think we want to meaningfully distinguish between records and tuples, so I made this change.

@agoose77 agoose77 temporarily deployed to docs-preview August 21, 2023 20:57 — with GitHub Actions Inactive
@agoose77 agoose77 marked this pull request as ready for review August 21, 2023 21:10
@agoose77 agoose77 changed the title fix: support broadcasting through tuples fix: fix/harden broadcasting through tuples Aug 21, 2023
@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Merging #2663 (cd1a3b8) into main (a42e44c) will increase coverage by 0.00%.
The diff coverage is 90.00%.

Additional details and impacted files
Files Changed Coverage Δ
src/awkward/_broadcasting.py 95.64% <90.00%> (+0.20%) ⬆️

... and 1 file with indirect coverage changes

@agoose77 agoose77 temporarily deployed to docs-preview August 21, 2023 21:21 — with GitHub Actions Inactive
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.

Thanks for catching that! This looks good and I'll merge it now.

@jpivarski jpivarski merged commit 0accfad into main Aug 21, 2023
35 of 36 checks passed
@jpivarski jpivarski deleted the agoose77/fix-broadcast-record-tuple branch August 21, 2023 22:00
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