Skip to content

Add ak.erase_union (name TBD) #2245

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

Closed
agoose77 opened this issue Feb 15, 2023 · 1 comment
Closed

Add ak.erase_union (name TBD) #2245

agoose77 opened this issue Feb 15, 2023 · 1 comment
Labels
feature New feature or request

Comments

@agoose77
Copy link
Collaborator

agoose77 commented Feb 15, 2023

Description of new feature

This function should drop the union type at a given depth when the tags are single valued.

@agoose77 agoose77 added the feature New feature or request label Feb 15, 2023
@agoose77 agoose77 changed the title Add ak.drop_union Add ak.erase_union (name TBD) May 9, 2023
@agoose77
Copy link
Collaborator Author

agoose77 commented May 9, 2023

This is also provided by ak.ensure_type (#2365). Do we need a single dedicated function? Perhaps. I'll hold off, for now, as unions should be fairly rare, and therefore a little bit more work to remove them (with ak.enforce_type) seems reasonable.

@agoose77 agoose77 closed this as completed May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant