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: specify dtype for buffers in from_rdataframe. #2145

Merged
merged 2 commits into from
Jan 24, 2023

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Jan 20, 2023

I believe that we're over-allocating here, because the default dtype is usually a 64-bit float on most systems. In any case, it's larger than a single byte, whilst I believe that we want to be allocating exactly item.second bytes.

@ianna are you able to check this logic for me? :)

@agoose77 agoose77 requested review from ioanaif and ianna and removed request for ioanaif January 20, 2023 12:02
@agoose77
Copy link
Collaborator Author

agoose77 commented Jan 20, 2023

Sorry for the review ping Ioana 🤦; muscle memory as you've reviewed a couple of my PRs recently!

@agoose77 agoose77 temporarily deployed to docs-preview January 20, 2023 12:20 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Jan 20, 2023

Codecov Report

Merging #2145 (5a904cf) into main (8513cc6) will not change coverage.
The diff coverage is 0.00%.

Additional details and impacted files
Impacted Files Coverage Δ
src/awkward/_connect/rdataframe/from_rdataframe.py 0.00% <0.00%> (ø)

@agoose77 agoose77 temporarily deployed to docs-preview January 24, 2023 17:12 — with GitHub Actions Inactive
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.

Thanks for spotting it!

@agoose77 agoose77 merged commit 2e82462 into main Jan 24, 2023
@agoose77 agoose77 deleted the agoose77/fix-dtype-rdataframe branch January 24, 2023 17:55
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