-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Would be great to be able to slice a ComponentSet using a label along a dimension:
>>> runs.sel(rcp='rcp85')
[{'rcp': 'rcp85',
'model': 'ACCESS1-0',
'year': 2006,
'func': <function __main__.<lambda>(x, thresh)>,
'thresholds': 32},
{'rcp': 'rcp85',
'model': 'ACCESS1-0',
'year': 2006,
'func': <function __main__.<lambda>(x, thresh)>,
'thresholds': 90},
{'rcp': 'rcp85',
'model': 'ACCESS1-0',
'year': 2006,
'func': <function __main__.<lambda>(x, thresh)>,
'thresholds': 95},
...This one really could return a new MultiComponentSet or ComponentSet
with the relevant Component domain limited to the provided label:
>>> runs.sel(rcp='rcp85')
<MultiComponentSet [{rcp: 1, model: 33, year: 96, func: 1, thresholds: 1},
{rcp: 1, model: 33, year: 96, func: 1, thresholds: 2}]>Metadata
Metadata
Assignees
Labels
No labels