-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update filter_by_attrs to use 'variables' instead of 'data_vars' #3247
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
Conversation
This will allow `filter_by_attrs` to filter coordinates as well as variables. @ocefpaf
Thanks @cspencerjones . Can you add a test that tests this? |
I guess we can just extend the existing test and check if we can find a coordinate by its attributes. For example, add a standard name for time here and see if we can find |
Exactly. |
cc: @jthielen Might make some things in MetPy easier... |
Hello @cspencerjones! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-08-23 19:03:46 UTC |
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.
This will be great to have! I just noticed something relating to CF compliance:
Thanks @cspencerjones ! Great to have you as a contributor |
Thanks @cspencerjones |
Oh no! I forgot to ask you to add a note in |
* upstream/master: Initialize empty or full DataArray (pydata#3159) Raise on inplace=True (pydata#3260) added support for rasterio geotiff tags (pydata#3249) Remove sel_points (pydata#3261) Fix sparse ops that were calling bottleneck (pydata#3254) New feature of filter_by_attrs added (pydata#3259) Update filter_by_attrs to use 'variables' instead of 'data_vars' (pydata#3247)
This will allow
filter_by_attrs
to filter coordinates as well as variables. @ocefpaf