-
Notifications
You must be signed in to change notification settings - Fork 41
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
Support indexing by cf_role for DSG datasets #240
Conversation
@@ -372,6 +372,7 @@ def _get_all(obj: Union[DataArray, Dataset], key: str) -> List[str]: | |||
""" | |||
all_mappers = ( | |||
_get_custom_criteria, | |||
functools.partial(_get_custom_criteria, criteria=cf_role_criteria), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kthyng This was really easy!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dcherian Nice! Not sure what this is exactly, but glad the changes are working for you.
@@ -665,7 +666,7 @@ def check_results(names, key): | |||
successful[k] = bool(measure) | |||
if measure: | |||
varnames.extend(measure) | |||
elif k in custom_criteria: | |||
elif k in custom_criteria or k in cf_role_criteria: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should really refactor this.
Codecov Report
@@ Coverage Diff @@
## main #240 +/- ##
=======================================
Coverage 96.76% 96.76%
=======================================
Files 14 14
Lines 1792 1793 +1
=======================================
+ Hits 1734 1735 +1
Misses 58 58
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
xref #122