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

Implement AttrsDict.group(), syntactic sugar for AttrsDict.map(..., unique=False) #48

Merged
merged 2 commits into from
Dec 29, 2023

Conversation

gipert
Copy link
Member

@gipert gipert commented Dec 29, 2023

Slight syntax improvement:

>>> ids = (
...    lmeta.channelmap()
...    .group("location.string")[1]
...    .map("daq.rawid")
...).keys()
dict_keys([1104000, 1104001, 1104002, 1104003, 1104004, 1104005, 1105600, 1105602, 1105603])

@gipert gipert added the enhancement New feature or request label Dec 29, 2023
Copy link

codecov bot commented Dec 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (de0da42) 72.72% compared to head (3ad061a) 72.60%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #48      +/-   ##
==========================================
- Coverage   72.72%   72.60%   -0.13%     
==========================================
  Files           7        7              
  Lines         737      741       +4     
==========================================
+ Hits          536      538       +2     
- Misses        201      203       +2     

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

@gipert gipert changed the title Implement AttrsDict.group(), syntactic sugar for AttrsDict.map(..., unique=False) Implement AttrsDict.group(), syntactic sugar for AttrsDict.map(..., unique=False) Dec 29, 2023
@gipert gipert merged commit 703abea into main Dec 29, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant