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 concrete buffers in TypeTracer.frombuffer #2718

Merged
merged 4 commits into from
Sep 27, 2023

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Sep 20, 2023

ak.zeros_like should support typetracer. This PR ensures that concrete buffers, such as those used in zeros_like, are supported. I didn't add support for using typetracer arrays here, because we don't yet need it.

@agoose77 agoose77 marked this pull request as ready for review September 20, 2023 12:58
@agoose77 agoose77 temporarily deployed to docs-preview September 20, 2023 13:17 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #2718 (d988cd9) into main (acac8e7) will decrease coverage by 0.02%.
The diff coverage is 66.66%.

Additional details and impacted files
Files Coverage Δ
src/awkward/_nplikes/typetracer.py 76.62% <66.66%> (-0.44%) ⬇️

... and 1 file with indirect coverage changes

@agoose77 agoose77 temporarily deployed to docs-preview September 20, 2023 21:19 — with GitHub Actions Inactive
@agoose77 agoose77 requested a review from jpivarski September 25, 2023 21:12
Copy link
Member

@jpivarski jpivarski left a comment

Choose a reason for hiding this comment

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

I agree; ak.zeros_like should support typetracer!

This looks like a straightforward enough PR that I'll merge it right away.

@jpivarski jpivarski enabled auto-merge (squash) September 27, 2023 19:05
@jpivarski jpivarski temporarily deployed to docs-preview September 27, 2023 19:23 — with GitHub Actions Inactive
@jpivarski jpivarski merged commit ead17e2 into main Sep 27, 2023
36 checks passed
@jpivarski jpivarski deleted the agoose77/fix-frombuffer-typetracer branch September 27, 2023 19:24
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