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

feat!: add Scalar binary and unary ops; adjust Scalar.__getattr__ #397

Merged
merged 11 commits into from
Oct 26, 2023

Conversation

douglasdavis
Copy link
Collaborator

This adds support for binary and unary operations with the Scalar collection, fixing #396

It also changes the existing __getattr__ implementation on the Scalar object. It was there to support any kind of Python Scalar object by just converting to delayed, but having this breaks IPython. We should raise an error that instructs the user to convert to delayed.

@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2023

Codecov Report

Merging #397 (38a4f5e) into main (f2ef9f1) will increase coverage by 0.16%.
The diff coverage is 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##             main     #397      +/-   ##
==========================================
+ Coverage   93.87%   94.04%   +0.16%     
==========================================
  Files          23       23              
  Lines        3022     3055      +33     
==========================================
+ Hits         2837     2873      +36     
+ Misses        185      182       -3     
Files Coverage Δ
src/dask_awkward/lib/core.py 93.28% <100.00%> (+0.59%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@douglasdavis douglasdavis marked this pull request as ready for review October 25, 2023 19:28
@douglasdavis douglasdavis merged commit 816cb30 into dask-contrib:main Oct 26, 2023
23 checks passed
@douglasdavis douglasdavis deleted the scalar-binary-unary-ops branch October 26, 2023 14:31
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