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

Migrate from defaultdict to Counter #267

Merged
merged 2 commits into from
Jan 10, 2025
Merged

Migrate from defaultdict to Counter #267

merged 2 commits into from
Jan 10, 2025

Conversation

nsmith-
Copy link
Collaborator

@nsmith- nsmith- commented Dec 9, 2024

To fix:
src/correctionlib/schemav2.py:419:37: B910 Use Counter() instead of defaultdict(int) to avoid excessive memory use

To fix:
src/correctionlib/schemav2.py:419:37: B910 Use Counter() instead of defaultdict(int) to avoid excessive memory use
@nsmith-
Copy link
Collaborator Author

nsmith- commented Dec 9, 2024

Tests failing due to dask 2024.12.0 breaking dask-awkward dask-contrib/dask-awkward#556.
Will wait for a fix

@lgray
Copy link
Contributor

lgray commented Jan 10, 2025

Oh you're doing that here.

@lgray
Copy link
Contributor

lgray commented Jan 10, 2025

dask issues should be resolved now.

@nsmith-
Copy link
Collaborator Author

nsmith- commented Jan 10, 2025

Everything but py3.7 succeeded in https://github.com/cms-nanoAOD/correctionlib/actions/runs/12717075834/
Merging since #270 takes care of 3.7

@nsmith- nsmith- merged commit 2acd2d0 into master Jan 10, 2025
13 of 22 checks passed
@nsmith- nsmith- deleted the usecounter branch January 10, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants