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: use of size in to_RegularArray #2226

Merged
merged 5 commits into from
Feb 7, 2023
Merged

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Feb 7, 2023

Anywhere that we compute lengths in kernels, we should be casting the results to lengths using index_nplike.scalar_as_shape_item(scalar), This allows conversion from unknown typetracer scalars to None lengths.

@codecov
Copy link

codecov bot commented Feb 7, 2023

Codecov Report

Merging #2226 (e8d1623) into main (327526d) will decrease coverage by 0.01%.
The diff coverage is 81.25%.

Additional details and impacted files
Impacted Files Coverage Δ
src/awkward/contents/regulararray.py 86.76% <66.66%> (-0.30%) ⬇️
src/awkward/types/regulartype.py 89.36% <80.00%> (-1.55%) ⬇️
src/awkward/contents/listoffsetarray.py 80.65% <100.00%> (+0.05%) ⬆️
src/awkward/forms/regularform.py 84.52% <100.00%> (ø)

@agoose77 agoose77 requested a review from jpivarski February 7, 2023 22:45
@agoose77 agoose77 temporarily deployed to docs-preview February 7, 2023 23:03 — with GitHub Actions Inactive
@agoose77 agoose77 merged commit cbc2c4d into main Feb 7, 2023
@agoose77 agoose77 deleted the agoose77/fix-to-regulararray branch February 7, 2023 23:46
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