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: switch permit_dask to True by default #922

Merged
merged 5 commits into from
Nov 9, 2023
Merged

Conversation

lgray
Copy link
Collaborator

@lgray lgray commented Nov 7, 2023

This PR makes dask-based nanoevents the default.

Currently there are some unrelated blockers for from (dask-)awkward related to numpy reducers.

@lgray
Copy link
Collaborator Author

lgray commented Nov 8, 2023

@nsmith- I've had to mangle some parts of the nanoevents schema system to get this all to fit right. I think it's worth a look from you to determine a way to make the non-user facing parts of the interface decent again.

@lgray
Copy link
Collaborator Author

lgray commented Nov 9, 2023

@nsmith- can you give this a look and lodge your complaints? May not get fixed in this PR but we can plan it for the future.

@nsmith- nsmith- self-requested a review November 9, 2023 16:16
src/coffea/nanoevents/factory.py Outdated Show resolved Hide resolved
@@ -10,14 +10,14 @@
fname = "tests/samples/nano_dy.root"
eagerevents = NanoEventsFactory.from_root(
{os.path.abspath(fname): "Events"},
schemaclass=NanoAODSchema.v6,
schemaclass=NanoAODSchema,
Copy link
Member

Choose a reason for hiding this comment

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

Does the .v6 specialization still work but is just not needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Right now the .vX specializations are a little broken in their original implementation. The functional sub-classing thing you were doing doesn't quite fit into the daskiness.

@lgray lgray merged commit 6e94679 into master Nov 9, 2023
13 checks passed
@lgray lgray deleted the permit-dask-default branch December 1, 2023 00:29
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