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: resulting __setitem__ layout type for ak.Record #3372

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

pfackeldey
Copy link
Collaborator

Fixes: #3370

ak.Record's .layout property is expected to be an instance of ak.record.Record. ak.with_field returns a ak.content.RecordArray though. A ak.record.Record's .array property points to this content class, thus we need to set .array and not .layout to the return value of ak.with_field.

Copy link
Collaborator

@ianna ianna left a comment

Choose a reason for hiding this comment

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

@pfackeldey - thanks for fixing the bug so quickly!

@ianna ianna enabled auto-merge (squash) January 16, 2025 19:58
@ianna ianna merged commit 6c01d57 into main Jan 16, 2025
39 checks passed
@ianna ianna deleted the pfackeldey/fix_akRecord_setitem branch January 16, 2025 20:05
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.Record breaks after adding a field
2 participants