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 dak.zip_no_broadcast #567

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pfackeldey
Copy link
Collaborator

Awkward-array v2.7.4 introduces ak.zip_no_broadcast which is useful for coffea to construct arrays without touching unwanted buffer keys. This PR implements the dak equivalent.

Copy link
Collaborator

@martindurant martindurant left a comment

Choose a reason for hiding this comment

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

Everything looks in order.

@@ -468,7 +468,7 @@ def to_dataframe(
"""
import dask
from dask.dataframe import DataFrame as DaskDataFrame
from dask.dataframe.core import new_dd_object # type: ignore
from dask.dataframe.core import new_dd_object
Copy link
Collaborator

Choose a reason for hiding this comment

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

This does not work with new dask, this is the problem that needs fixing. I don't know if that has any implication for this PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

my pre-commit did complain about this - ah maybe I was on an old dask version locally?

Copy link
Collaborator

@martindurant martindurant Jan 31, 2025

Choose a reason for hiding this comment

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

I suppose it's fine either way, we know this code is OK on python 3.9 (which never got the new dask) and doesn't work on newer versions at all.

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.08%. Comparing base (8cb8994) to head (9f4498e).
Report is 245 commits behind head on main.

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #567      +/-   ##
==========================================
- Coverage   93.06%   92.08%   -0.99%     
==========================================
  Files          23       24       +1     
  Lines        3290     3613     +323     
==========================================
+ Hits         3062     3327     +265     
- Misses        228      286      +58     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

4 participants