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: support empty records in ak.with_field #2387

Merged
merged 3 commits into from
Apr 10, 2023

Conversation

agoose77
Copy link
Collaborator

Fixes #2385

I didn't yet add purelist_is_record; this feels like a very niche function, so we can start with it only as a local function to see whether its need crops up again.

@agoose77 agoose77 marked this pull request as ready for review April 10, 2023 19:40
@agoose77 agoose77 requested a review from jpivarski April 10, 2023 19:45
@agoose77 agoose77 temporarily deployed to docs-preview April 10, 2023 19:58 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Apr 10, 2023

Codecov Report

Merging #2387 (a6df6c9) into main (be60b53) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
Impacted Files Coverage Δ
src/awkward/operations/ak_with_field.py 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

@jpivarski jpivarski merged commit 70f5003 into main Apr 10, 2023
@jpivarski jpivarski deleted the agoose77/fix-with-field-record branch April 10, 2023 20:38
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.

ak.with_field is has an overzealous check for excluding RecordArrays
2 participants