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

Refactor dimensionality comparisons to check() #1924

Merged
merged 1 commit into from
Jun 21, 2021

Conversation

23ccozad
Copy link
Contributor

@23ccozad 23ccozad commented Jun 21, 2021

Found 5 places in MetPy where we use .dimensionality == to check the dimensionality of a quantity. Pint offers .check() to accomplish the same task, which we first used in #1912, and @dopplershift suggested we replace .dimensionality == to .check() across the project where possible.

@23ccozad 23ccozad marked this pull request as ready for review June 21, 2021 19:33
@dopplershift dopplershift merged commit 09b4514 into Unidata:main Jun 21, 2021
@github-actions github-actions bot added this to the 1.1.0 milestone Jun 21, 2021
@23ccozad 23ccozad deleted the refactor_dimensionality branch June 28, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants