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

Wrap check_axis unit checking to not fail on bad unit #1116

Merged
merged 1 commit into from Jul 29, 2019
Merged

Wrap check_axis unit checking to not fail on bad unit #1116

merged 1 commit into from Jul 29, 2019

Conversation

jthielen
Copy link
Collaborator

This PR implements the suggested fix in #1092, with a test based on the example provided.

Closes #1092.

@dopplershift dopplershift added Area: Units Pertains to unit information Area: Xarray Pertains to xarray integration Type: Enhancement Enhancement to existing functionality labels Jul 27, 2019
@dopplershift dopplershift added this to the 0.11 milestone Jul 27, 2019
Copy link
Member

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now the function returns True or None. Is there any reason not to return False instead of None?

@jthielen
Copy link
Collaborator Author

No there isn't! I've updated the function and test accordingly.

@dopplershift dopplershift merged commit 2e1ed32 into Unidata:master Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Units Pertains to unit information Area: Xarray Pertains to xarray integration Type: Enhancement Enhancement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can parse_cf routine skip nondimensional variable instead of giving an error?
2 participants