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: boolean slicing with non-packed arrays #2246

Merged
merged 4 commits into from
Feb 16, 2023

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Feb 15, 2023

In fixing #2214, I missed the fact that to_ListOffsetArray64(True) provides no guarantee about the length of the content. This PR fixes that oversight, by using ak._do.flatten which ensures the length of the result is correct.

@agoose77 agoose77 changed the title chore: initial commit fix: boolean slicing with non-packed arrays Feb 15, 2023
@agoose77 agoose77 marked this pull request as ready for review February 15, 2023 21:26
Comment on lines +530 to 533
raise wrap_error(
TypeError("This slice is not supported for JAX differentiation.")
)
# missing values as any integer other than -1 are extremely rare
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unrelated change.

@codecov
Copy link

codecov bot commented Feb 15, 2023

Codecov Report

Merging #2246 (d37e04a) into main (2e37adf) will increase coverage by 0.00%.
The diff coverage is 80.00%.

Additional details and impacted files
Impacted Files Coverage Δ
src/awkward/_slicing.py 87.54% <80.00%> (+0.14%) ⬆️

@agoose77 agoose77 temporarily deployed to docs-preview February 15, 2023 21:38 — with GitHub Actions Inactive
@agoose77 agoose77 merged commit 082e485 into main Feb 16, 2023
@agoose77 agoose77 deleted the agoose77/fix-advanced-slice-length branch February 16, 2023 06:57
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